• 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 Control a player object along a path

A

Aardvark

Guest
Hello everyone!

I was wondering if there is a way, for a player object, to move along a path? But not to follow the path automatically. For example, I would like for the player to move the object along a prescribed circular path with the analog stick of a game pad :

PATH.png

I tried to define a path with collision objects but it's a real mess. The object gets stuck, the movement is not fluid along the way.

I tried looking for tutorials and the built-in documentation but I couldn't find anything.

Thanks a lot!
 

Alexx

Member
You could just make a circular path, then use path_position, increasing or decreasing a value between 0 and 1 based on player input.
 
Top