Hi all,
I am trying to apply force to my sprite AWAY from the position of another object. There is an action to apply force TOWARD a position, but I'm not sure how to apply it in the opposite direction of an object.
I tried setting the position to -Target.x,-Target.Y but this didn't work.
Anything else I can try?
Thanks in advance for your help!
Develop games in your browser. Powerful, performant & highly capable.
You can try a negative force.
Or use "Apply force at angle" action with angle(position.x, position.y, sprite.x, sprite.y)