• Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

Question - Code Animation Speed?

M

Mr-swanky

Guest
I have been stuck on getting the animation speed correct, the animation just runs too quickly. I need it slowed down a bit so it looks better. Anyone know how to help?
 
R

r7465

Guest
In the object's create event, add the variable image_speed and set it to 0.3
 
M

Mr-swanky

Guest
Thank you, that fixed it. How would I change movement speed though?
 

Yal

šŸ§ *penguin noises*
GMC Elder
Movement speed is either controlled with the variables speed and direction, or hspeed and vspeed. I think hspeed/vspeed are used internally (horizontal and vertical speed, respectively) and setting direction + speed will have some trigonometry happen behind the scenes to influence them. There's also the variables friction, gravity, gravity_direction to influence moment but I find it easier to do it manually, especially gravity (since you usually want to limit how much momentum can be built up and the default gravity system won't do that).
 
Top