YesNoOk
avatar

Spiraling Projectiles (Read 6363 times)

Started by Cyanide, May 04, 2007, 11:39:27 pm
Share this topic:
Spiraling Projectiles
#1  May 04, 2007, 11:39:27 pm
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
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.
Re: Spiraling Projectiles
#2  June 15, 2007, 11:59:46 am
  • ****
  • "Moyashi tsuku shite yaru..."
Very interesting! Thanks!
Re: Spiraling Projectiles
#3  November 29, 2008, 08:10:05 am
  • *
  • Literal Replicant Ego
    • www.sesakaheart.deviantart.com
Very cool! I can try that out. Thanks!  :)

The cake is a PIe!