Advertisement

spirte movement in different screen res

Started by May 18, 2003 09:50 AM
2 comments, last by Jumpman 21 years, 9 months ago
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.
Advertisement
Simple ratios
thanks guys..

http://members.iinet.net.au/~cleathley/

This topic is closed to new replies.

Advertisement