I have a character in the makingv from my game in the making that is REQUIRED by THE GAME'S STANDARDS THAT EVERY CHARACTER IN THE GAME MUST EXPLODE WHEN DED. But seriously, I tried. I got it to work once, but it only happens when lying down. I want it to happen straight away when the character gets defeated. Like in Smash bros when you fall off the bounderies. For this, it's only when their health reaches 0. Posted: December 26, 2014, 03:18:51 amNo? Ok.
Bellow your [statedef -2] you need to add a changestate to a custom state when your characters life hits zero and the match is over. So use these triggers for your chagestate :trigger1 =life=0trigger1=MatchOverIn the changestate you want to make the player anim invisible and also spawn an explod and sound effect for the blow up. You also need to add a screenbound and a PosSet :[State 0, ScreenBound] ;so the camera won't follow the invisible playertype = ScreenBoundtrigger1 = time >=0value = 0movecamera = 0,0ignorehitpause = 1[State 0, PosSet] ;Set the character way below the floor so when they go to there statedef 5150 they ;won't reappear on screen.type = PosSettrigger1 = time = 3y = 800ignorehitpause = 1[State 0, ChangeState] ;After everything has triggered in the explosion effect your character goes to his ;normal lie dead state.type = ChangeStatetrigger1 = time = 5value = 5150ctrl = 1ignorehitpause = 1
She just stands there when she gets defeated by F1. When I defeat her without F1, nothing different happens.
Electro's code is basically for the player to go to a custom state after being defeated. I believe the OP is asking for the opposite, put the enemy into a custom state and have him explode after being KO'd.To place the enemy in a custom state when he's KO'd, you will need to hit the enemy with a projectile in the same instant he's defeated. The projectile will put the enemy into a custom state of yours where you can do anything to him.
You may want to go into more detail on your problem if you can. Are you trying to do something like Megaman and Strider being KOed in Marvel where they disintegrate? Or more like what Gargoyle said? If you're doing a fullgame couldn't you just program it like the former or would that present problems?
I want the character herself to explode. Not anyone else to , and[statedef -2][State -2, ChangeState]type = ChangeStatetrigger1=life=0trigger1=MatchOvervalue = 6666666666666666666666666ctrl = 0;anim =;ignorehitpause = ;persistent = ;----------------------------[Statedef 6666666666666666666666666]type = Smovetype= Iphysics = Nanim = 9741ctrl = 0[State 6666666666666666666666666, EnvShake]type = EnvShaketrigger1 = time = 0 time = 2freq = 60ampl = -4phase = 90;ignorehitpause = ;persistent = [State 6666666666666666666666666, ScreenBound] ;so the camera won't follow the invisible playertype = ScreenBoundtrigger1 = time >=0value = 0movecamera = 0,0ignorehitpause = 1[State 6666666666666666666666666, PosSet] ;Set the character way below the floor so when they go to there statedef 5150 they ;won't reappear on screen.type = PosSettrigger1 = time = 3y = 800ignorehitpause = 1