First post here, so sorry if this isn't in the correct forum
I'm having problems finding the answer to my question. I'm using surfaceview and pretty much designing everything in code (no XML) - I'm OK with displaying graphics for multiple screens etc.... but just wondered, when moving a sprite, say for example from, left to right across the screen should the value you move the sprite by each time be an explicit value? Or some kind of density independant value?
Example, psuedo code may be something like:
spriteX++;
or spriteX=spriteX+1
I'm just thinking, doing this, would make the sprite move quicker on a lower (120dpi) density screen and slower on a higher (say, 240 dpi screen), when what I really want is for it to appear to take roughly the same amount of time to cross the screen on all density's - how would I get around this?
Thanks all!! Hope someone can help me out.




