GMS 2 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