# Spiraling Projectiles (Read 6530 times)

Started by Cyanide, May 04, 2007, 11:39:27 pm
Share this topic:

#### Cyanide

##### Spiraling Projectiles
#1  May 04, 2007, 11:39:27 pm
• Legendary XIII
• I am the eye of the storm to come!
Description for this is hard to explain. Basically this effect

You have 5 variables.

Speed = S
X
Y
multiplier for X and Y = M
Integer = #

This can be used on Explods, projectiles and by redirecting to parent helpers.

Equation for X velocity.
S*sin(M*#)

Equation for Y velocity
S*cos(M*#)

M will constantly go up any over time trigger is good. Varadd is also useful, S defines the speed of the object, a higher value will cause them to move faster. # defines the space between each object. Different values coupled with different triggers will cause a different effect.

In the screen shot shown i am using
trigger1 = time%10  = 0
vel = 4*sin(time*25),4*cos(time*25)

If you wish the spiral to travel counter clockwise, put a - in front of M.

In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.

#### Elix

##### Re: Spiraling Projectiles
#2  June 15, 2007, 11:59:46 am
• "Moyashi tsuku shite yaru..."
Very interesting! Thanks!

#### SesakaX

##### Re: Spiraling Projectiles
#3  November 29, 2008, 08:10:05 am
• Literal Replicant Ego
Very cool! I can try that out. Thanks!

The cake is a PIe!