• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

GameMaker Full analog movement with variable speed?

U

Undead Hero

Guest
Hey. I’ve looked everywhere, but couldn’t find an answer to this.

Is there a function in GM2 that that would allow you to change the speed a player moves at based on how far you’re moving an analog stick? ie, nudge the stick a little bit to move slowly, push it all the way to the edge to move quickly.

Thanks!
 

chamaeleon

Member
Hey. I’ve looked everywhere, but couldn’t find an answer to this.

Is there a function in GM2 that that would allow you to change the speed a player moves at based on how far you’re moving an analog stick? ie, nudge the stick a little bit to move slowly, push it all the way to the edge to move quickly.

Thanks!
Presumably gamepad_axis_value will be what you're looking for. The example code is more or less doing what you are asking for.
 
Top