Help with Simple sprite motion. Back Forward Jump
bking21
Member Posts: 1
Hi, I have been having problems getting a sprite (main player) to move forward and backwards in a natural way.
I have tried using accelerate to move a sprite forward and this works, but the problem is that, well it acts like it is accelerating, moves slowly and gradually builds up pace.
What makes it worse is that the player also glides with accelerate, completely ignoring friction.
Now in game salad it says your supposed to implement the drag function on a character to stop this, however when i do this it still accelerates in the same annoying way. All I want is for the sprite to move forwards at a constant speed and stop when needed, but without using the move function because although it works perfectly it ignores gravity.
Any help appreciated
I have tried using accelerate to move a sprite forward and this works, but the problem is that, well it acts like it is accelerating, moves slowly and gradually builds up pace.
What makes it worse is that the player also glides with accelerate, completely ignoring friction.
Now in game salad it says your supposed to implement the drag function on a character to stop this, however when i do this it still accelerates in the same annoying way. All I want is for the sprite to move forwards at a constant speed and stop when needed, but without using the move function because although it works perfectly it ignores gravity.
Any help appreciated
Comments