Pixel Orbit in Developer Help
|
|
Okay so, what I want to do SOUNDS relatively simple, but I've come to understand it's not.
What I want to do is get an object to orbit another object, with pixel movement enabled. Sadly there isn't an orbit proc so I have no idea how to do this. Also consider that my math skills aren't the greatest.
To keep things simple, said orbit should be a constant, perfect circle.
Any ideas, even a starting point, would be amazing if anyone doesn't mind lending a hand.
EDIT: I say orbit because the primary object may or may not move, so I need it to understand where it is and where it should be.
|
Didn't do any testing on that snippet, so you may need to change things if problems do arise. But otherwise that should be the basic way to make something orbit.
(Note: "rotation" should be a positive number for clockwise and negative for counter-clockwise and increasing the magnitude of the number increases the rate of rotation.)
Hope that helped! (: