i want to give an object a path.
when searching for it in the manual i can only find pathfinding but i want just an ordinary orbital looping path.
Hey yotzer
i am not a math expert but maybe for your project the sine behavior is enough. Give your sprite two sine behaviors, one horizontal and one vertical:
Make sure that the 'Period' of both are the same. The 'Period offset' of one sine needs to be 0.25 * 'Period'. Magnitude can differ to achieve an ellipse. All these values can be stored in variables and changed in events.
Develop games in your browser. Powerful, performant & highly capable.
thanks but i don't think you understood what i wanted.
i was making a small pong with balls(planets) circulating around the sun and just wanted them to ..circulate .
anyway i fixed it by pinning them to a rotating sprite.
yes. thats what i did. your solution is a good one too. if it works like you expected it to work its fine.