Hello everyone,
I'm not sure if this belongs here or in the Technical forums, but since this is my first post here, I'll assume I must be a beginner
.
What I need to do is adjust my character's position in every frame of his walking animation. It's a way to avoid gliding (the "anti-glide" and "adjust speed according to scale" do help, but they don't work correctly for me). So what I need the script to do is this:
- change the character's position and frame as usual, according to AGS's pathfinding engine.
- notice that the character's position and frame have changed
- change his x and y values depending both on the previous and on the new position
- display the character in his new position
What the script does instead is this:
- change the character's position and frame as usual
- display the character in his new position
- notice that the character's position and frame have changed
- change his x and y values depending both on the previous and on the new position
- display the character in his new position *again*
The result is that the character is constantly shaking - my script for adjusting position works, but not before the character is displayed for a split second in his original position dictated by the AGS engine. Is there a way to make changes to coordinates take place before the game draws the character onscreen?
Thanks for any reply!
I'm not sure if this belongs here or in the Technical forums, but since this is my first post here, I'll assume I must be a beginner

What I need to do is adjust my character's position in every frame of his walking animation. It's a way to avoid gliding (the "anti-glide" and "adjust speed according to scale" do help, but they don't work correctly for me). So what I need the script to do is this:
- change the character's position and frame as usual, according to AGS's pathfinding engine.
- notice that the character's position and frame have changed
- change his x and y values depending both on the previous and on the new position
- display the character in his new position
What the script does instead is this:
- change the character's position and frame as usual
- display the character in his new position
- notice that the character's position and frame have changed
- change his x and y values depending both on the previous and on the new position
- display the character in his new position *again*
The result is that the character is constantly shaking - my script for adjusting position works, but not before the character is displayed for a split second in his original position dictated by the AGS engine. Is there a way to make changes to coordinates take place before the game draws the character onscreen?
Thanks for any reply!