User blog comment:MugenLover10/My M.U.G.E.N. Character/@comment-3495717-20130103123019/@comment-5084266-20130508005145

i now coded the rainbow lazer as a helper, but instead of it being to where i hold a button, it now acts as a hyper attack. it only deals 2 damage, and he now goes to his dizzy state when power = 0, because he can't withstand using it.

Here is how it coded:

;--

; Rainbow Lazer

[Statedef 2208]

type = S

movetype= A

physics = N

velset = 0,0

ctrl = 0

anim = 2208

poweradd = 0

sprpriority = 2



[state 2208, super a]

type = superpause

trigger1 = time = 1

time = 50

<p style="margin-top:0px;margin-bottom:0px;">sound = 20,0

<p style="margin-top:0px;margin-bottom:0px;">anim = 102

<p style="margin-top:0px;margin-bottom:0px;">pos = 0, -20

<p style="margin-top:0px;margin-bottom:0px;">

<p style="margin-top:0px;margin-bottom:0px;">[State 2208, PowerAdd]

<p style="margin-top:0px;margin-bottom:0px;">type = PowerAdd

<p style="margin-top:0px;margin-bottom:0px;">triggerall = anim = 2208

<p style="margin-top:0px;margin-bottom:0px;">trigger1 = time >= 5

<p style="margin-top:0px;margin-bottom:0px;">value = -50

<p style="margin-top:0px;margin-bottom:0px;">

<p style="margin-top:0px;margin-bottom:0px;">[State 2208, Helper]

<p style="margin-top:0px;margin-bottom:0px;">type = Helper

<p style="margin-top:0px;margin-bottom:0px;">trigger1 = Anim = 2208

<p style="margin-top:0px;margin-bottom:0px;">trigger1 = AnimElem = 2

<p style="margin-top:0px;margin-bottom:0px;">helpertype = normal

<p style="margin-top:0px;margin-bottom:0px;">ignorehitpause = 1

<p style="margin-top:0px;margin-bottom:0px;">name = "Rainbow Lazer"

<p style="margin-top:0px;margin-bottom:0px;">size.ground.back = 128

<p style="margin-top:0px;margin-bottom:0px;">size.ground.front = 128

<p style="margin-top:0px;margin-bottom:0px;">size.air.back = 128

<p style="margin-top:0px;margin-bottom:0px;">size.air.front = 128

<p style="margin-top:0px;margin-bottom:0px;">size.xscale = 2

<p style="margin-top:0px;margin-bottom:0px;">size.yscale = 1.5

<p style="margin-top:0px;margin-bottom:0px;">id = 2209

<p style="margin-top:0px;margin-bottom:0px;">facing = 1

<p style="margin-top:0px;margin-bottom:0px;">pos = 17,-29

<p style="margin-top:0px;margin-bottom:0px;">postype = P1

<p style="margin-top:0px;margin-bottom:0px;">stateno = 2209

<p style="margin-top:0px;margin-bottom:0px;">keyctrl = 0

<p style="margin-top:0px;margin-bottom:0px;">ownpal = 1

<p style="margin-top:0px;margin-bottom:0px;">

<p style="margin-top:0px;margin-bottom:0px;">[State 2208, OutOfPower]

<p style="margin-top:0px;margin-bottom:0px;">type = ChangeAnim

<p style="margin-top:0px;margin-bottom:0px;">triggerall = power = 0

<p style="margin-top:0px;margin-bottom:0px;">trigger1 = anim = 2208

<p style="margin-top:0px;margin-bottom:0px;">value = 5300

<p style="margin-top:0px;margin-bottom:0px;">

<p style="margin-top:0px;margin-bottom:0px;">[State 2208, StateType]

<p style="margin-top:0px;margin-bottom:0px;">type = StateTypeSet

<p style="margin-top:0px;margin-bottom:0px;">trigger1 = Anim = 5300

<p style="margin-top:0px;margin-bottom:0px;">movetype = I

<p style="margin-top:0px;margin-bottom:0px;">

<p style="margin-top:0px;margin-bottom:0px;">[State 2208, Anim]

<p style="margin-top:0px;margin-bottom:0px;">type = ChangeAnim

<p style="margin-top:0px;margin-bottom:0px;">triggerall = Time >= 250

<p style="margin-top:0px;margin-bottom:0px;">trigger1 = Anim = 5300

<p style="margin-top:0px;margin-bottom:0px;">trigger1 = AnimTime = 0

<p style="margin-top:0px;margin-bottom:0px;">value = 5301

<p style="margin-top:0px;margin-bottom:0px;">

<p style="margin-top:0px;margin-bottom:0px;">[State 2208, State]

<p style="margin-top:0px;margin-bottom:0px;">type = ChangeState

<p style="margin-top:0px;margin-bottom:0px;">trigger1 = anim = 5301

<p style="margin-top:0px;margin-bottom:0px;">trigger1 = animtime = 0

<p style="margin-top:0px;margin-bottom:0px;">value = 5110

<p style="margin-top:0px;margin-bottom:0px;">

<p style="margin-top:0px;margin-bottom:0px;">;--

<p style="margin-top:0px;margin-bottom:0px;">;Lazer Object

<p style="margin-top:0px;margin-bottom:0px;">[Statedef 2209]

<p style="margin-top:0px;margin-bottom:0px;">type = A

<p style="margin-top:0px;margin-bottom:0px;">movetype= A

<p style="margin-top:0px;margin-bottom:0px;">physics = N

<p style="margin-top:0px;margin-bottom:0px;">juggle = 5

<p style="margin-top:0px;margin-bottom:0px;">sprpriority = 2

<p style="margin-top:0px;margin-bottom:0px;">velset = 0,0

<p style="margin-top:0px;margin-bottom:0px;">anim = 2209

<p style="margin-top:0px;margin-bottom:0px;">ctrl = 0

<p style="margin-top:0px;margin-bottom:0px;">

<p style="margin-top:0px;margin-bottom:0px;">[State 2209, HitDef]

<p style="margin-top:0px;margin-bottom:0px;">type = HitDef

<p style="margin-top:0px;margin-bottom:0px;">trigger1 = AnimElem = 1

<p style="margin-top:0px;margin-bottom:0px;">trigger2 = AnimElem = 2

<p style="margin-top:0px;margin-bottom:0px;">trigger3 = AnimElem = 3

<p style="margin-top:0px;margin-bottom:0px;">trigger4 = AnimElem = 4

<p style="margin-top:0px;margin-bottom:0px;">trigger5 = AnimElem = 5

<p style="margin-top:0px;margin-bottom:0px;">trigger6 = AnimElem = 6

<p style="margin-top:0px;margin-bottom:0px;">trigger7 = AnimElem = 7

<p style="margin-top:0px;margin-bottom:0px;">trigger8 = AnimElem = 8

<p style="margin-top:0px;margin-bottom:0px;">trigger9 = AnimElem = 9

<p style="margin-top:0px;margin-bottom:0px;">trigger10 = AnimElem = 10

<p style="margin-top:0px;margin-bottom:0px;">trigger11 = AnimElem = 11

<p style="margin-top:0px;margin-bottom:0px;">trigger12 = AnimElem = 12

<p style="margin-top:0px;margin-bottom:0px;">trigger13 = AnimElem = 13

<p style="margin-top:0px;margin-bottom:0px;">trigger14 = AnimElem = 14

<p style="margin-top:0px;margin-bottom:0px;">trigger15 = AnimElem = 15

<p style="margin-top:0px;margin-bottom:0px;">trigger16 = AnimElem = 16

<p style="margin-top:0px;margin-bottom:0px;">trigger17 = AnimElem = 17

<p style="margin-top:0px;margin-bottom:0px;">trigger18 = AnimElem = 18

<p style="margin-top:0px;margin-bottom:0px;">trigger19 = AnimElem = 19

<p style="margin-top:0px;margin-bottom:0px;">trigger20 = AnimElem = 20

<p style="margin-top:0px;margin-bottom:0px;">trigger21 = AnimElem = 21

<p style="margin-top:0px;margin-bottom:0px;">trigger22 = AnimElem = 22

<p style="margin-top:0px;margin-bottom:0px;">trigger23 = AnimElem = 23

<p style="margin-top:0px;margin-bottom:0px;">trigger24 = AnimElem = 24

<p style="margin-top:0px;margin-bottom:0px;">trigger25 = AnimElem = 25

<p style="margin-top:0px;margin-bottom:0px;">attr = A, HA

<p style="margin-top:0px;margin-bottom:0px;">damage = 2,0

<p style="margin-top:0px;margin-bottom:0px;">animtype = Heavy

<p style="margin-top:0px;margin-bottom:0px;">getpower = 0

<p style="margin-top:0px;margin-bottom:0px;">givepower = 25

<p style="margin-top:0px;margin-bottom:0px;">guardflag = MA

<p style="margin-top:0px;margin-bottom:0px;">hitflag = MAFD

<p style="margin-top:0px;margin-bottom:0px;">pausetime = 0,10

<p style="margin-top:0px;margin-bottom:0px;">sparkno = -1

<p style="margin-top:0px;margin-bottom:0px;">sparkxy = 0, 0

<p style="margin-top:0px;margin-bottom:0px;">hitsound = S197,3

<p style="margin-top:0px;margin-bottom:0px;">guardsound = 6,0

<p style="margin-top:0px;margin-bottom:0px;">ground.type = High

<p style="margin-top:0px;margin-bottom:0px;">ground.slidetime = 20

<p style="margin-top:0px;margin-bottom:0px;">ground.hittime = 20

<p style="margin-top:0px;margin-bottom:0px;">ground.velocity = -4,-2

<p style="margin-top:0px;margin-bottom:0px;">airguard.velocity = -2,-1

<p style="margin-top:0px;margin-bottom:0px;">air.type = High

<p style="margin-top:0px;margin-bottom:0px;">air.velocity = -4,-2

<p style="margin-top:0px;margin-bottom:0px;">air.juggle = 1

<p style="margin-top:0px;margin-bottom:0px;">kill = 0

<p style="margin-top:0px;margin-bottom:0px;">

<p style="margin-top:0px;margin-bottom:0px;">[State 2209, AssertSpecial]

<p style="margin-top:0px;margin-bottom:0px;">type = AssertSpecial

<p style="margin-top:0px;margin-bottom:0px;">trigger1 = 1

<p style="margin-top:0px;margin-bottom:0px;">flag = noshadow

<p style="margin-top:0px;margin-bottom:0px;">

<p style="margin-top:0px;margin-bottom:0px;">[State 2209, Destroy]

<p style="margin-top:0px;margin-bottom:0px;">type = DestroySelf

<p style="margin-top:0px;margin-bottom:0px;">trigger1 = power = 0

<p style="margin-top:0px;margin-bottom:0px;">