YesNoOk
avatar

Destroy a dash effect. (Read 429 times)

Started by Cyberq3000, October 25, 2014, 07:15:12 am
Share this topic:
Destroy a dash effect.
#1  October 25, 2014, 07:15:12 am
  • *
    • USA
So for my regular "FF" run, I have a wave helper effect that plays during the forward running but I do not know what trigger to use to destroy the helper when I stop running.  As long as I hold forward to keep running, I want the wind helper effect to keep playing and looping but when I stop running to attack or stand still, I don't know what destroy trigger to use to stop the looping.

Here's what I got so far.

[State -1, Helper]
type = Helper
trigger1 = time = 1
triggerall = stateno = 100
helpertype = normal ;player
name = "Dash Helper"
ID = 5701
stateno = 5701
postype = p1    ;p2,front,back,left,right
facing = 1
keyctrl = 0



And here is the Helper state.


; Dash Helper
; CNS difficulty: easy
[Statedef 5701]
type    = S            ;State-type: S-stand, C-crouch, A-air, L-liedown
movetype= A            ;Move-type: A-attack, I-idle, H-gethit
physics = S            ;Physics: S-stand, C-crouch, A-air
juggle  = 1            ;Number of air juggle points move takes
;Commonly-used controllers:
velset = 0,0         ;Set velocity (x,y) (Def: no change)
ctrl = 0            ;Set ctrl (Def: no change)
anim = 9023            ;Change animation (Def: no change)
sprpriority = 1         ;Set layering priority to 2 (in front)

[State 5701, AssertSpecial]
type = AssertSpecial
trigger1 = 1
flag = noshadow

[State 5701, BindToParent]
type = BindToParent
trigger1 = 1
facing = 1
time = 1
pos = 0,0

[State 5701: DestroySelf]
type = DestroySelf
trigger1 = ???




As you can see, I don't know what to use for trigger1 on Destroyself.
Re: Destroy a dash effect.
#2  October 25, 2014, 07:28:45 am
  • ***
  • Ha hA Haaaaaa.....
    • USA
    • electroslair.blogspot.com/
I'm just guessing, but you could try this trigger in your Destroyself sctrl.

[State 5701: DestroySelf]
type = DestroySelf
trigger1 = root,stateno !=100

Re: Destroy a dash effect.
#3  October 25, 2014, 09:06:21 am
  • ******
  • I'm a fuffy.
    • USA
    • www.trinitymugen.net
Why use a helper instead of an explod?
Re: Destroy a dash effect.
#4  October 25, 2014, 09:42:32 am
  • *
    • USA
I'm just guessing, but you could try this trigger in your Destroyself sctrl.

[State 5701: DestroySelf]
type = DestroySelf
trigger1 = root,stateno !=100



Thanks, it worked.


Why use a helper instead of an explod?

Because I'm still new to a lot of this and learning as I go.  I haven't gotten to learning explod properly yet so i'm just using what I have learned so far to do what I want with my characters.  I will probably look up explod eventually because it seems easier to do in some situations.
Re: Destroy a dash effect.
#5  October 25, 2014, 11:54:16 am
  • ******
  • I'm a fuffy.
    • USA
    • www.trinitymugen.net
Not only is it easier, it also uses up less resources.
Re: Destroy a dash effect.
#6  October 26, 2014, 03:45:01 pm
  • ****
  • THE Atomic Runner
    • Guyana
    • Skype - ryon_persaud
    • www.mugenfreeforall.com
This explod code in -3 would have the same effect.


Code:
[State -3, Explod]
type = Explod
trigger1 = stateno = 100 && time%5=0
anim = 9023
ID = 100
pos = 0,0
postype = p1
removetime = -2
pausemovetime = 0
supermovetime = 0
scale = 1,1
sprpriority = 5
ownpal = 1
removeongethit = 1

Someone may want to add more triggers but thats the basic idea of it.
|