Help with Simple sprite motion. Back Forward Jump

bking21bking21 Member Posts: 1
edited November -1 in Working with GS (Mac)
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

Comments

  • rebumprebump Member Posts: 1,058
    Have you tried adding a maxspeed to the player? Also, have you upped the drag on the player and/or increased the friction on the platform? Their density comes into play a bit too, if I recall, in terms of acceleration and collision (or is that just for collision - at work right now).
Sign In or Register to comment.