GMS 2 Control a player object along a path


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 :


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!


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