YesNoOk
avatar

Character dissapears when I change the animation in middle of a hitpause. (Read 349 times)

Started by Daniel9999999, July 12, 2013, 02:40:13 am
Share this topic:
Character dissapears when I change the animation in middle of a hitpause.
#1  July 12, 2013, 02:40:13 am
  • ****
  • [MUFFLED ROCK MUSIC PLAYING IN THE DISTANCE]
    • Chile
    • koakoa@jabber.org

  • Online
I was working on my character Sanae63, and I was implementing her j.,5A attack which is taken from her j.2A attack in source.

Turns out she has to bounce off the opponent as she hits them.

Code:
[Statedef 630]
type    = A
movetype= A
physics = A
juggle  = 5
poweradd= 20
ctrl = 0
anim = 630

[State Fall]
type = PlaySnd
trigger1 = Time=0
value = S0,4

[State Jump]
type = ChangeAnim
triggerall = anim!=631
trigger1 = movecontact
value=631
ignorehitpause=1
persistent=0
[State Start]
type = VelSet
trigger1 = anim=631 && animelem=1
x = ifelse(command="holdfwd",2,ifelse(command="holdback",-2,0))
y = -5


[State Stomp]
type = HitDef
trigger1 = Time=0
attr = A,NA
guardflag = HA
animtype = light
fall.animtype = Diagup
priority = 4,Hit
damage = 20,0
pausetime = 12,12
sparkno = 0
guard.sparkno = 40
sparkxy = -9,0
hitsound = S0,7
guardsound = S0,6
ground.type = High
ground.slidetime = 28
guard.slidetime = 28
ground.hittime = 28
guard.hittime = 28
air.hittime = 28
guard.dist = 320
yaccel = 0.6
ground.velocity = -4
guard.velocity = -4
air.velocity = -3,-2
airguard.velocity = -4.5,-.8
air.fall = 1
numhits = 1

Problem is, her sprite DISSAPEARS as I change the animation in the hitpause. I tried a different animation like animation 0 and she still did so. The animation 631 exists, and none of these frame times are 0. So there's no reason why she should dissapear. The CLSN for the first frame also show up too.

Any help regarding this is appreciated.
Last Edit: July 12, 2013, 02:48:12 am by Sanae63
Re: Character dissapears when I change the animation in middle of a hitpause.
#2  July 12, 2013, 03:11:43 am
  • ****
  • THE Atomic Runner
    • Guyana
    • Skype - ryon_persaud
    • www.mugenfreeforall.com
have you tried debugging it to see if the animation ever really changes to 631?
|
Re: Character dissapears when I change the animation in middle of a hitpause.
#3  July 12, 2013, 03:13:52 am
  • ****
  • [MUFFLED ROCK MUSIC PLAYING IN THE DISTANCE]
    • Chile
    • koakoa@jabber.org

  • Online
have you tried debugging it to see if the animation ever really changes to 631?

Yes I have. Actionno changes to 631 in contact, but the animation doesn't display until the hitpause is over.

     Posted: July 12, 2013, 03:55:23 am
Took upon to fix it myself and go the longer way by making a new state. Apparently I just found a MUGEN bug without wanting to. What a good moment....