Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
Behdadsoft
15
Years of Service
User Offline
Joined: 7th Apr 2009
Location: Tehran-Iran
Posted: 19th Apr 2015 13:25
Hi.

I want move enemies spiral in screen and need create path for them but I don't know how to do it.

Please Guide Me.

Thanks.
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 19th Apr 2015 15:55 Edited at: 19th Apr 2015 15:56
You need 2 variables, angle and distance. Angle should go from 0 to 360 and keep looping. Distance should keep reducing until it reaches zero (for spiraling inwards). Position is


Using AppGameKit V2 Tier 1
Behdadsoft
15
Years of Service
User Offline
Joined: 7th Apr 2009
Location: Tehran-Iran
Posted: 19th Apr 2015 22:12
Thanks Baxslash.

your mean is this:

baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 20th Apr 2015 12:46
That looks about right

Using AppGameKit V2 Tier 1

Login to post a reply

Server time is: 2024-04-27 01:28:55
Your offset time is: 2024-04-27 01:28:55