Move object for a certain time interval
Hello i am working on a tile based game, and currently i am trying to fix the movement. What i want to do is make my character move smoothly for a fixed amount of time. I might not be explaining my self very clearly but i wanna do something like this:
function keyPress(event:KeyboardEvent)
{
if (event.keyCode == Keyboard.RIGHT)
{
Move character 25 pixels to the right smoothly.
}
}
Hope i made understandable, any help is much appreciated
