Spinning Firestick

Posted:
Mon Jul 09, 2012 12:24 am
by Hblade
How can I make (multiple) spinning firesticks like in Super mario?
Re: Spinning Firestick

Posted:
Mon Jul 09, 2012 12:54 am
by skydereign
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;