I am looking for a clever way for setting up a walking sprite that slowly accelerates from standing to normal walking speed.
The normal moving speed is 250 and normal animation frame speed is 45.
I have added the following lines in the Window.Update procedure.
The increasing moving is working sort of okay with the next 2 lines but the FramesPerSecond not; it keeps the initial animation speed of the animation after loading the sprite screen with TSprite.CreateFrameSize.
if Sprite[NR].MoveSpeed < 250 then Sprite[NR].MoveSpeed := Sprite[NR].MoveSpeed + 5;
Sprite[NR].CurrentSprite.X := Sprite[NR].CurrentSprite.X + SecondsPassed * Sprite[NR].MoveSpeed;
if Sprite[NR].WalkRightSprite.FramesPerSecond < 45 then Sprite[NR].WalkRightSprite.FramesPerSecond := Sprite[NR].WalkRightSprite.FramesPerSecond + 5;
Do you have an example how to get this right?