spirte movement in different screen res
Hi All..
I am just wondering if there a simple formula (which I''m sure there is) which will allow me to move a sprite (ortho mode) the same relative distance (ie from left edge to right edge) in the same time no matter what the screen res is.. ie moveing a sprite at 1024 would take the same time at 800)..
getting a smooth movement ofcourse by dividing the speed by the elasped milliseconds if no probs.. I just want to calculate different speeds based on the screen size.
many thanks if somebody can help
http://members.iinet.net.au/~cleathley/
If I get it right...
You just have to "cross" more pixels on higher resolution.
So if your speed is 100 at 800x600 then you need speed 100*(1024/800) = 128 on 1024x768.
You just have to "cross" more pixels on higher resolution.
So if your speed is 100 at 800x600 then you need speed 100*(1024/800) = 128 on 1024x768.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement