

You can copy the code (and adapt it to your needs).

It’s important to start at 1 and not 0 because of how GameMaker Studio 2 works with string indexes. GameMaker has everything you need to take your idea from concept to finished game.

Hint: Make a variable that you check if it's true, such as 'canplaywalksound', set it to false when you are already playing the sound for walking. You get the idea correct but you accomplish it wrong. I made a simple slope movement in my GameMaker game.Įverything works fine except if player goes up slope and its speed is high enough not to have time to react to the collision code it gets stuck in the wall. Calculate the duration of the animation (which is basically the length of the animationstring) Set the starting animationindex 1. 2 Nitro987 1:56pm Try using alarms instead of that counterfootstep variable, play around with it.
