YesNoOk

Show content

This section allows you to browse the content for this member. Note that you can only see content for which you have sufficient viewing permissions.


LuigiMario is Offline
Contact LuigiMario:

LuigiMario

User

Messages by LuigiMario

    

Re: Change Helper

 January 03, 2014, 06:58:54 pm View in topic context
avatar  Posted by LuigiMario  in Change Helper (Started by LuigiMario January 02, 2014, 04:36:43 pm
 Board: M.U.G.E.N Development Help

Im sorry, im new at this, where do i put the code? in the helper state? the state where the helper is activated?
    

Re: Change Helper

 January 02, 2014, 05:51:38 pm View in topic context
avatar  Posted by LuigiMario  in Change Helper (Started by LuigiMario January 02, 2014, 04:36:43 pm
 Board: M.U.G.E.N Development Help

you should code them as a helper, not as a projectile, cuz then you could easily use this code
[State 0, BlueFireBall]
type = ChangeAnim
triggerall = NumHelper( put here the id of the fireball ) >9
trigger1 = Anim!= Animation number of the blue fireball
value = Animation number of the blue fireball


the code i put in the post is the code of the helper, im using stateno 500 as a helper state.
also, i tried your code, after the 9th fireball, the rest of the fireballs are blue, i just want to shoot one blue fireball after every 9 normal fireballs, not turn them all into blue fireballs.
    

Change Helper

 January 02, 2014, 04:36:43 pm View in topic context
avatar  Posted by LuigiMario  in Change Helper (Started by LuigiMario January 02, 2014, 04:36:43 pm
 Board: M.U.G.E.N Development Help

So, what i want is to change helper after certain actions happens.

I have helper 500 in state 230. Helper 500 fires a projectile. I use command "hold_y" to shoot, just like a machine gun.

And i want the helper to change sprite after i fire 9 projectiles, like so:

fireball, fireball, fireball, fireball, fireball, fireball, fireball, fireball, fireball, bluefireball.

Also, i want to make the bluefireball to deal more damage than a regular fireball.

i hope i was clear enough of what i want, my english is not very good.

     Posted: January 02, 2014, 04:38:03 pm
i leave helper so someone can tell me what should i do to change sprite and hitdef:

;---------------------------------------------------------------------------
[Statedef 500]
type = A
ctrl = 0
anim = 290
velset = 4,0
movetype = A
physics = N
sprpriority = 5

[state a]
type = Trans
trigger1 = 1
trans = addalpha
alpha = 245,50

[state a]
type = nothitby
trigger1 = 1
value = SCA
time = -1

[state a]
type = hitby
trigger1 = 1
value = SCA,NP,SP,HP
time = -1
ignorehitpause = 1

[state a]
type = hitoverride
trigger1 = 1
attr = SCA,NP,SP,HP
stateno = 511
ignorehitpause = 1

[State 210, 2]
type = HitDef
trigger1 = time = 1
attr = A, NP
animtype  = light
damage    = 1, 0
priority = 1, Hit
getpower = 1,0
givepower = 0,0
hitflag = MA
guardflag = MA
pausetime = 0,0
sparkno = s550
sparkxy = 0,0
hitsound   = s200,3
guardsound = s200,4
guard.sparkno = s555
ground.type = high
ground.slidetime = 0
ground.hittime  = 0
ground.velocity = 0
air.velocity = 0,0
yaccel = 0.47
air.fall = 0
fall.recover = 1
ID = 1000
nochainID = 9999
palfx.time =1
palfx.mul = 230,230,250
palfx.sinadd = 255,255,255,5;palfx.sinadd = 63,65,68,5
palfx.add = 16,16,16
palfx.color = 1
palfx.invertall = 1
ground.cornerpush.veloff = 0
air.cornerpush.veloff = 0
guard.cornerpush.veloff = 0
airguard.cornerpush.veloff = 0

[state a]
type = changestate
trigger1 = moveguarded
value = 510

[state a]
type = destroyself
trigger1 = movehit
trigger2 = frontedgedist <= -100
trigger3 = backedgedist <= -100
trigger4 = time = 150
    

Destroy Helper with frame

 January 02, 2014, 04:03:14 am View in topic context
avatar  Posted by LuigiMario  in Destroy Helper with frame (Started by LuigiMario January 02, 2014, 04:03:14 am
 Board: M.U.G.E.N Development Help

So, i programmed a helper to act when a char is attacking in a special state. (Like inside a car, or a box, for example)

State 2000 Animation 9000 is activated and Helper 1000 is active. Command is "hold_x"

Animation 9000 has 4 frames.

I let go command "hold_x", the animation is still 9000 but is in frame 4.

Now the problem is, the Helper 1000 is still active, even when im no longer in state 9000

What i want is to destroy the helper when i enter the 4th frame of animation 9000.


    

Re: How to changestate to a certain frame

 December 21, 2013, 04:55:00 pm View in topic context
avatar  Posted by LuigiMario  in How to changestate to a certain frame (Started by LuigiMario December 20, 2013, 06:38:38 am
 Board: M.U.G.E.N Development Help

Nice, it worked, now i want to make my character face the other way when i do a attack
(I set my char with noautoturn and some attacks that uses "holdfwd" won't work, obviously. But setting "holdback" won't work either)
    

How to changestate to a certain frame

 December 20, 2013, 06:38:38 am View in topic context
avatar  Posted by LuigiMario  in How to changestate to a certain frame (Started by LuigiMario December 20, 2013, 06:38:38 am
 Board: M.U.G.E.N Development Help

I want to make the char to changestate to a certain frame of the anim
for example:
Stateno 304, anim 304 (6 frames)

Changestate to 305, anim 305 (1 frame)

Changestate back to stateno 304 but goes to the 4th frame of anim 304.

I hope that you guys understand what i want.