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.

Code Snippets / [DBP] 2D tilemap zooming

Author
Message
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 6th Aug 2008 23:09
I'm assuming this got deleted because I didn't specify DBP?

You can zoom in on a tilemap, sprites are resized and repositioned accordingly. It always zooms towards the center of the map, not a specific point. I might try working on that later. You could potentially use this to zoom in on an RTS map with some form of LOD or something, I don't know.

In this demo, use the mouse to move the starting point of the tilemap and the up/down keys to zoom.




Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 8th Aug 2008 01:09 Edited at: 8th Aug 2008 01:09
ok so then again i write sweet snippet

Login to post a reply

Server time is: 2024-05-19 03:54:56
Your offset time is: 2024-05-19 03:54:56