Orbiting an actor around another Actor in Windows.
I've been able to find the tutorials for orbiting an actor around another Actor in Gamesalad that TShirtbooth has put up, but every time I try and enter anything that requires the "[" and "]" brackets in the Windows version, it doesn't seem to work.
Am I just entering things in wrong, or is there a different way to Orbit an actor around another Actor in the Windows version of Game Salad?
Am I just entering things in wrong, or is there a different way to Orbit an actor around another Actor in the Windows version of Game Salad?
Comments
Constrain X position to: AAA*sin(game.Time *BBB)+CCC
Constrain Y position to: AAA*cos(game.Time *BBB)+CCC
AAA = the radius of your orbit.
BBB = the speed of the orbit.
CCC = the centre of your orbit.
Simply make your CCC values (the centre of the orbit) follow your actor.
Constrain X position to: AAA*sin(game.Time *BBB)+[the X position of the 'parent' actor]
Constrain Y position to: AAA*cos(game.Time *BBB)+[the Y position of the 'parent' actor]
I've made an example for you:
http://www.mediafire.com/?szrqgdrz3rxy3wi