Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Object position while zooming

Author
Message
MummyKillerSLO
17
Years of Service
User Offline
Joined: 5th Jul 2009
Location: Object Position Y(ObjChair)
Posted: 8th Aug 2011 15:16
Hello!

I've made grid function for my editor. The problem is that I can't calculate position of object to stay on tile. The position is correct when I zoom object without moving it, but when I move it for greater value than zoom (default: 15px) the position get wrong when zooming the object again. Any help ?



Happy to having and using DarkBASIC Professional...
MummyKillerSLO
17
Years of Service
User Offline
Joined: 5th Jul 2009
Location: Object Position Y(ObjChair)
Posted: 14th Aug 2011 16:03
Anyone ?

Happy to having and using DarkBASIC Professional...
Mugen Wizardry
User Banned
Posted: 14th Aug 2011 16:05
Your gonna wanna go to main loop, and IF zooming then position object myobj, object position x(tile), object position y(tile), object position z(tile).

CHECK OUT MY WEBSITE AT http://imageposeidon.com/ !

Login to post a reply

Server time is: 2026-07-10 20:58:04
Your offset time is: 2026-07-10 20:58:04