Flip enemy sprite and movement without a collider

if you want your enemy to move for a certain distance this will help. You can adjust the flipDuration to manage the distance.


? Is a ternary conditional operator that checks if movingRight is true or false, if true the value of moveSpeed is used and vice versa.

Privacy & Terms