[UPDATE] Someone tested it on an Android phone and reported that the flickering was hardly present So it looks like it might have just been a simulator problem.
Hi everyone,
If I have a sprite image and I move it to the right like so:
local function movement(e)
sprite.x = sprite.x + 1
end
Runtime:addEventListener("enterFrame", movement)
It’ll be fine and move the the right (or left or whichever)
But if I want a slightly faster speed, say 1.1, then the sprite image will start to gain an extra pixel width that starts to flicker.
Setting it up to speed +2, works fine again but that’s too fast.
The reason is obvious, because I’m moving the image by a fraction, which isn’t possible.
Although I don’t know how to solve this.
Is there a way to make the movement more sensitive, so I can slowing increase the speed?
How do running games move their characters at an curved speed without causing stretching.
Thanks for any help you can provide.
Yours Sincerely, Matt (???)? [import]uid: 91798 topic_id: 29547 reply_id: 329547[/import]
[import]uid: 69826 topic_id: 29547 reply_id: 118623[/import]

