I'm pretty sure the problem I have can be solved with a nice bit of maths.
I have a platformer level where the player must walk around the edge a 2d circle.
So the angle of gravity must always be towards the center of the circle.
I can set the angle of gravity each tick, but I'm not sure what the formula is to calculate the required angle from the X/Y coordinates of the two objects.
There is a nifty little built-in function that returns the angle between two points. Check it out on this page ! It's under "Math". <img src="smileys/smiley2.gif" border="0" align="middle">
Develop games in your browser. Powerful, performant & highly capable.
Not only is that page really useful, but it solved my problem!
Thanks so much!