Spinning Firestick

Non-platform specific questions.

Spinning Firestick

Postby Hblade » Mon Jul 09, 2012 12:24 am

How can I make (multiple) spinning firesticks like in Super mario?
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: Spinning Firestick

Postby skydereign » Mon Jul 09, 2012 12:54 am

Just have the center piece create several flaming balls in a line. Then their code is just to rotate around the creator actor using direction and some trig functions.
Code: Select all
double ang = degtorad(direction(creator.x, creator.y, x, y)+2);
double dist = distance(creator.x, creator.y, x, y);
x=cos(ang)*dist;
y=-sin(ang)*dist;
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: Spinning Firestick

Postby Hblade » Mon Jul 09, 2012 12:58 am

Thank you sky!
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron