Thanks. Meanwhile I found out that the problem only occurs when I use destination coordinates where the Scene has to ‘stop walking’.
(see my last code in topic ‘Moving in 8 directions’. )
With just key presses ‘walk-stop’ everything is allright without hickup when stopping.
and I do not change URL in a scene; every scene has it’s own ‘unique’ URL file designed in CGE.
videos: (thanks Kagamma for the link)
When using click mouse coordinates https://streamable.com/czmlz1
And as you can see it’s only occuring the first ‘stop’. When continuing ‘walk-stop’ in the same direction there is no hickup with the next stop.
When I control with key presses https://streamable.com/63jy6z
Player.Stand := false;
Player.StandIdleScene.Exists := false;
Player.WalkRightScene.Exists := true;
Player.WalkRight := true;
Player.WalkRightScene.PlayAnimation(Player.Personalia.FirstName + 'walkright', true);
Player.Stand := true;
Player.WalkRightScene.Exists := false;
Player.StandIdleScene.Exists := true;
Player.StandIdleScene.PlayAnimation(Player.Personalia.FirstName + 'standright', false);
With mouse-clicked coordinates:
if Player.X >= Round(Player.Destination.X) then
if Player.WalkRight then StandRight;