Hi, I need help with some complex formulas. My game is an 8 direction topdown RPG. When my players sword collides with an enemy, I just want one event to determine sword direction and knockback the enemy the correct direction.
Right now, I have to use conditions like:
If sword is facing direction right, then position enemy x+10
and do that for all directions. Anyone know the formula I can use to do it in just one event?