Hi. I need to make an object rotate around another object you know like a shield that spins around your ship in a shooter.
i know ive read how to do it here but i cant find anything when i search.
does anyone have an example or know the maths for it or simply know what to search for, like an article namne ect.
Use the Advanced Math object. Then put in the following events:
>start of level
-set decimal offset(advanced math object) to 3
>always
-add 1 to shield's alterable value A
-set X position of shield to ( X of player+([distance from player] * Cosine(sheild's value A))/1000)
-set Y position of shield to ( Y of player+([distance from player] * Sine(sheild's value A))/1000)
>if shield's value A >360
-subtract 360 from shield's value A
Trig may be confusing. If you can't figure out what the following code does, just plug it in and don't worry about it for now.