Ascended M.U.G.E.N

General M.U.G.E.N. => M.U.G.E.N. Guidance => : hyper saiyan 2092 October 22, 2007, 03:27:13 PM



: How to create projectiles!
: hyper saiyan 2092 October 22, 2007, 03:27:13 PM
Here is a tutorial on how to create beams since people ask me frequently :)

I will be using super vegito sprites for the projectile wave animation

And no this goku will NOT be a wip =P
I will be doing this in color order

Note: u need to know how to get the character running in mugen (basci coding)

First
Second
Third
Fourth
Last

Its color coded for all u special people =D jp
(http://i200.photobucket.com/albums/aa133/whosurteddy/kame1-2.png)
Get ur sprites into fighter factory and put them into the animations file
(http://i200.photobucket.com/albums/aa133/whosurteddy/kame2-1.png)
Giving them names and begin source numbers
do the same with projectiles
(http://i200.photobucket.com/albums/aa133/whosurteddy/kame3-1.png)

Next when everything ids in the animations file

go to the common1.cns
and go to the lef twhere u can change into projectile coding
(http://i200.photobucket.com/albums/aa133/whosurteddy/jkame4.png)

Statedef is the definition of the file

The animation is the animation of vegitos kamehameha stance in this case 12 is where his arms are completely to the point where he fires it

Animation executing projectile is the actually stance in this case 799
Projectile animation speaks for itself but incase u dont know th animation for the kamehameha = 789

Explosion animation and damage speak for themself ifyu dont know it ill hit yu with a bat ;D

In the end ur coding for a beam should look like this

:
[StateDef 799]
type = S
movetype= A
physics = S
juggle  = 100
velset = 0,0
ctrl = 0
anim = 799
poweradd = -3000

[State 789, 1]
type = Projectile
trigger1 = AnimElem = 7
projanim = 789
projhitanim = 3
projpriority = 2
projheightbound = 50, 40
projscale = .5,.5
projremovetime = 3
projhits = 20
projmisstime = 0
projedgebound = 100
projscreenbound = 100
projshadow = -1
offset = 40,-43
velocity = 0
attr = S, SP
damage   = 13, 10
animtype = diagup
guardflag = MA
hitflag = MAFDP
pausetime = 1,10
hitsound   = 5,2
sparkxy = 500,500
guardsound = S6,0
ground.type = Low
ground.slidetime = 25
ground.hittime  = 0
ground.velocity = 6, 4
air.animtype = Back
air.velocity = -4,-6
air.juggle = 3
air.fall = 1
down.velocity = -4,-6
down.hittime = 30
down.bounce = 0
sprpriority = 1
fall = 1

[State 215, end]
type = ChangeState
trigger1 = (animtime = 0)
value = 0
ctrl = 1

Now go into your .cmd


:
;Super Kamehameha
[State -1, Super kamehameha]
type = Changestate
value = 799
triggerall = command = "Super kamehameha"
triggerall = power >= 1000
trigger1 = ctrl = 1
triggerall = statetype = S
time = 20

You may use this as ur coding I dont mind just give me credit if used :)

I hope this tutorial works in every way possible if u have questionns post in this topic






: Re: How to create projectiles!
: kingofM.U.G.E.N. October 23, 2007, 05:48:03 AM
thats cool
now only if someone made a complete character making tutorial thats EASY to read  :P


: Re: How to create projectiles!
: hyper saiyan 2092 October 23, 2007, 03:08:36 PM
thats cool
now only if someone made a complete character making tutorial thats EASY to read  :P


is my tutorial to hard to understand  ???



: Re: How to create projectiles!
: kingofM.U.G.E.N. October 26, 2007, 08:59:45 PM
no
in fact its easy
we just need things like this for creating a whole character


Sorry, the copyright must be in the template.
Please notify this forum's administrator that this site is missing the copyright message for SMF so they can rectify the situation. Display of copyright is a legal requirement. For more information on this please visit the Simple Machines website.