• 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 Trying to make an object walk a path frowards and backwards indefinetly

C

Chupiperasaurio Studios

Guest
I am trying to make enemies walk a certain path forwards and backwards indefinetly when they are in patrol mode.

I have tried setting the endaction to path_action_reverse but this only makes the enemy follow the path to the end, follow the path backwards, then follow half of the path forward and stop. If I go with path_action_stop but reversing it manually it does the same. Any other trick I tried made the charachter disappear or warp to the other point of the path.

Just for extra info, I am using relative paths, not absolutes.
 
C

Chupiperasaurio Studios

Guest
Ended up being an unnecessary path_end(), path_action_reverse is the best way to do it
 
Top