I am having a problem with my enemy movement system. I am trying to get the enemy to collide with the wall and then go the opposite direction. Currently it only works with two of the 4 directions. I know that the order of the events have something to do with it because once I change the order the directions that work change also. I need them all to work. If anyone could help me out it would be most excellent.
-original-
1- does not work
2- works
3- does not work
4- works
-changed-
2- does not work
1- works
4- does not work
3- works
if its 4 direction movement the simplest way to do it is in a single event (also good with all directions if you want it to go in the opposite direction on collision)
-on collision with wall
+set dir to dir_of_enemey - 16
i added a condition to your enemy collision loops. alterable value z must = 0 and then set the value to something else on collision. then when not colliding set it back to 0. you should change it to a flag.