Skip to main content
gamedev.net
🔒 Locked

2d zoom!

Started by SquareDanceSteve 1 reply 650+ views
Original Post
SquareDanceSteve
SquareDanceSteve
I no doubt know this has been discussed before... but apparently i dont know the propper search terms... anyway, i want to add a zoom feature to my 2d game right now i am scaling the position by the zoom ie position.x * zoom and scaling the sprite by the zoom ie scale.x * zoom and surprise it dosnt work!!! i have tryed a number of difrent combinations... and i cant get it... can someone help
-----------------www.stevemata.com
coderx75
coderx75
Mathematically, it's correct. Can you post some code. Perhaps the problem is in your algorithm.
Quit screwin' around! - Brock Samson
SquareDanceSteve
SquareDanceSteve
thankyou, that was the boost i needed :)

i broke it down to most simplest form and discovered that i was translating before scaling
-----------------www.stevemata.com

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.