Sorry, I am very new to game making and I am not quite sure how to change the direction the enemy is facing while following a path(he moonwalks and doesn't mirror). I know how to do it for when he is following the player (using compare X pos) but kind of lost on the pathfinding method. Any help would be really great, thank you.
System For each Enemy ..System Enemy.Pathfinding.MovingAngle is within 89 degrees of 0 ......Enemy set Not Mirrored ..Else ......Enemy set Mirrored
There is a shorter but more advanced method which doesn't require "For each" loop:
On every tick Enemy set width to Self.ImageWidth*(anglediff(Enemy.Pathfinding.MovingAngle,0)<90 ? 1 : -1)
Develop games in your browser. Powerful, performant & highly capable.
awesome and seriously thank you, how did you get that else tho? lol, I am so new to this I have no idea if this is day one coding stuff, my apologies.
Else is a system condition.
how did you get that else tho?
Select an event and press X on keyboard.