how can i do that my opponent loses health automatically gradually slowly during the match ? Can you tell me the code please ?
For the opponent:BaganSmashBros's Samus (I think? I could be wrong) has a metroid that drains opponents life while they are in play. Maybe you could use that as a reference? Basically you need to hit an opponent first, and then use a TargetLifeAdd code.For your own character:Code: [State -2, LifeAdd]type = LifeAddtrigger1 = RoundState = 2ignorehitpause = 1value = -1
This is taken from my Samus;Metroid Healing[State -2, 3590] type = LifeAdd triggerall = var(23) < 520triggerall = var(24) > 1triggerall = var(24) < 310triggerall = life < 1400trigger1 = time%6 = 0 value = 4It adds health to Samus. Change the 4 to -4 and it'll drain health instead of give it. Something like this should work for you[State -2, 3590] type = LifeAdd triggerall = life > 3trigger1 = time%6 = 0 value = -4Adjust the time% and the value to get the draining amount/speed you want.It wont kill the player as it stands because of the life > 3. You should be able to get rid of it or adjust it to match your new value.
Thank you guys and when i lose the match how can i get up and stay on feet during my opponent's winpose ?
What are you trying to do with this?Maybe you can force the player into statedef 0 when the life hits 0?
I gave a quick look at Chotto Komaru's Ryu and he has something similar.He wrote a change anim in state -2 to accomplish this.Code: [State -2, •‰‚¯‹N‚«ã‚ª‚è—p]type = ChangeAnimtriggerall = (NumEnemy) && (!MatchOver) && (RoundState = 4)trigger1 = (Anim != 10001) && (StateNo = 5150) && (Time >= 50)value = 10001[State -2, •‰‚¯‹N‚«ã‚ª‚è—p]type = Turntriggerall = (Anim = 10001)trigger1 = (AnimElemTime(6) = 0) && (P2Dist X < 0)Persistent = 0The changeanim happens when you're defeated, when you're in state 5150 (Downed get-hit, lying defeated).Anim 10001 could be his get up+ stand animation.So yeah, that's a way.
Sheng Long can you tell me the code in the statedef 0 like you were saying ? i want a very simple code
Yes, don't even care about what I said (that is not just simple, it's super-simple). But what should I expect from someone like you...- Go to statedef -2; (if it isn't written, write [Statedef -2])- copy those codes I wrote before;- make an animation number 10001 with him standing.Done.Italiano:- vai nello statedef -2 (se non c'è scritto, scrivi [Statedef -2])- copia quei codici che ho scritto prima;- fai l'animazione 10001 con lui che sta in piedi.Fatto.
ma l'animazione 10001 sta nel codice che mi hai scritto o la devo fare a parte nel file .air ? come si fa l'animazione con lui che sta in piedi ?
I know it was you.The code says:change the animation when he is defeated and lying, dead.The animation must be done in the .air file. When the code reads the conditions (dead), it changes to said anim (10001) that is the one when he is standing.I'm going to give you a link to a tutorial I made in Italian.Here it is: http://mugenrebirth.forumfree.it/?t=66668658#lastpostRead everything. This works for every version of Fighter Factory. It's an explanation of the various files you can edit.Il codice dice:cambia animazione quando è sconfitto e per terra, morto.L'animazione deve essere fatta nel file .air. Quando il codice legge le condizioni (morto, per terra), esso cambia l'animazione in quella in cui sta in piedi (10001).Ti darò un link per un tutorial che ho fatto in italiano.Eccolo qui: http://mugenrebirth.forumfree.it/?t=66668658#lastpostLeggi tutto, mi raccomando. Questo funziona per ogni versione di Fighter Factory. E' una spiegazione sui vari files che puoi modificare.
ma scusa posso semplicemennte usare l'animazione di lui che si rialza che già esiste ? intendo quando il nemico mi colpisce durante lo scontro e io vado per terra poi il personaggio si rialza e quindi posso semplicemente usare quella animazione senza farne una nuova che non la so fare ?
Yes, sure, you can do it. You just have to change this line:Code: value = 10001with the number of the animation you want to use as get up animation.Did you read the tutorial? I suggest you to do that. So you know what is the .air files, the .cns etc. .Sì, certo, puoi farlo. Hai soltanto da cambiare questoCode: value = 10001con il numero dell'animazione che vuoi utilizzare come animazione per rialzarsi.Hai letto il tutorial? Ti suggerisco di farlo. Così saprai cosa sono l'.air, il .cns ecc. .
Ok ti ringrazio ho provato e ha funzionato ! Ma affianco a "[State -2]" ci posso mettere una scritta normale ? Tu mi hai messo una scritta che sembra arabo ! xD
Hahah, I didn't write it, it was Chotto; I think it should be Japanese but opening it with Fighter Factory it became gibberish.You can write what you want.Ah, I'm also updating that tutorial to explain how to add an animation. Maybe I'll tell you later.Hahah, non l'ho scritta io, è stato Chotto; penso che sia giapponese ma aprendolo con Fighter Factory è diventato una cosa impronunciabile.Puoi scrivere qualsiasi cosa tu voglia.Ah, sto anche aggiornando quel tutorial per spiegare come aggiungere un'animazione. Forse ti dirò dopo.
Posso semplicemente mettere lo sprite della stand al posto dello sprite di quando sta per terra ? Ma lo sprite del personaggio quando cade per terra durante lo scontro è diverso dallo sprite di quando cade per terra quando ha perso ?
I updated the guide I made in Mugen Rebirth.As for your questions,- first write in English (and in Italian), so that others can understand what you're asking;- second, I don't really understand. Do you mean that when he falls down and hits the ground, you want him to just stand on his feet?- Third, for the last question no, they are not different. The animation numbers are, though.Ho aggiornato la guida che ho fatto in Mugen Rebirth.E per le tue domande,- primo, scrivi in Inglese (e in Italiano), cosicché gli altri possano capire che cosa tu stai chiedendo;- secondo, non riesco a capire, vuoi dire che quando cade e tocca terra, lo vuoi che stia subito in piedi?- Terzo, per la tua ultima domanda non sono differenti. Lo sono i numeri delle animazioni però.
Si voglio cambiare lo sprite di lui quando viene sconfitto e quindi va per terra con lo sprite della stand.. Come si fa ?
I told you to write both in English and in Italian.Go in the .sff, search for the sprite you want to change and change it.You should read the docs, lots of things are written there.Ti ho detto di scrivere sia in inglese che in italiano.Vai nell'.sff, cerca lo sprite che vuoi cambiare e cambialo.Dovresti guardarti i docs (documenti), molte cose sono scritte là.Ciao.