YesNoOk
avatar

[SOLVED] Add 2 Animations "type = ChangeAnim2" at the same time on same statedef (Read 681 times)

Started by delweynes, January 03, 2011, 05:15:53 pm
Share this topic:
[SOLVED] Add 2 Animations "type = ChangeAnim2" at the same time on same statedef
#1  January 03, 2011, 05:15:53 pm
  • avatar
  • **
Well all is in the title.

I would like to know how to make 2 animations at the same time with type = ChangeAnim2.

I tried to add another same state but with other value (animation 2) but then, only animation 2 is working.

There should be a command line like "value = 4000 & 40001" or something like this.

Thank you for answer and... happy new year ^^ yeah !
Last Edit: January 03, 2011, 11:38:38 pm by delweynes
Re: Add 2 Animations "type = ChangeAnim2" at the same time on same statedef
#2  January 03, 2011, 07:16:29 pm
  • ***
  • Life is Life... WTF!!
    • www.mugenimperiolatino.com/index.php
well changeanim2 is used to change the enemy anim when he is in a custom state

[mcode]changeanim2[/mcode]

if you want change anims to your player or change Selfs Anims use Changeanim sctrl

[mcode]Changeanim[/mcode]

well is hard to know what are u trying to do... but to change one anim after the other i think on this code...

[mcode][State 0, ChangeAnim]
type = ChangeAnim
trigger1 = !Time
value = 1500

[State 0, ChangeAnim]
type = ChangeAnim
trigger1 = Anim = 1500 && !AnimTime
value = 1505[/mcode]

edit the trigger like you need... for example the first change anim appear when your stateddef starts and the seconds begin when the statetime is 40

[mcode]
[State 0, ChangeAnim]
type = ChangeAnim
trigger1 = !Time
value = 1500

[State 0, ChangeAnim]
type = ChangeAnim
trigger1 = Time = 40
value = 1505[/mcode]

bye bye!
[

Nice userbars no? :P Make click & Download something nice for your Mugen!!!
________________________________
Re: Add 2 Animations "type = ChangeAnim2" at the same time on same statedef
#3  January 03, 2011, 10:10:38 pm
  • avatar
  • **
Well sorry For not being very clear ha ha ^^

eg.

[State 3520]
type = ChangeAnim2
Trigger1 = Time = 0
value = 6000 <-------- So P2 is doing animation 6000. But I want P2 doing animation 6001 too at the same moment and after the same P1 command.

in example :
P1 hits P2.
P2 enters at state "6000" coded in P1's air file. So animation last for 30 sec and begins at time 0.

But I want to create a clone of P2 doing animation "6001" coded in P1's air file too. The 6001 animation will last for 30 sec too, and will begin at time 0 too.

So we ll see sprite of P1 doing is animation
a Sprite of P2 doing animation 6000 for 30 sec
another sprite of P2 doing animation 6001 for 30 sec (a miror cloned image of P2).

The 3 at the same time on the screen.

Well I hope to have been more precice now :x. he he sorry otherwise.
Re: Add 2 Animations "type = ChangeAnim2" at the same time on same statedef
#4  January 03, 2011, 10:24:30 pm
  • ***
  • Life is Life... WTF!!
    • www.mugenimperiolatino.com/index.php
ok i think that is impossible... maybe using a explod when your "get" the enemy in a custom state... and the explod is coded to player2, using a selfanim of your player :S because if you want to use changeanim2 in a not custom state mugen does nothing....

what kind of animation do you want to use?

the other way is adding this action in your air files to each character and this selfanim like a helper when the player is in a custom state. (<- that is the most functional but, you have to add it in all air files :S )

_______

look a long time i did something like that...

http://www.youtube.com/watch?v=ol03j4CFXQQ

but can you see...  its a simple anim... to use as explod.
[

Nice userbars no? :P Make click & Download something nice for your Mugen!!!
________________________________
Re: Add 2 Animations "type = ChangeAnim2" at the same time on same statedef
#5  January 03, 2011, 10:29:31 pm
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
No you can't do that. The only plausible method is have your initial attack hit twice and have p2 create a helper of himself. That way you can custom state his helper as well and have that play the other animation. When you create explods etc inside a custom state it uses p2's sprite data so it won't work the way you want.

And of course, when it affects the player like that you can't make it change to 2 animations at once in the same way you can't go to 2 different states at the same time.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.
Re: Add 2 Animations "type = ChangeAnim2" at the same time on same statedef
#6  January 03, 2011, 11:38:23 pm
  • avatar
  • **
Alright, thanks for this.

I ll thing about something else.

2OS

Re: Add 2 Animations "type = ChangeAnim2" at the same time on same statedef
#7  January 04, 2011, 12:05:02 am
  • ****
  • Ich schicke dich zur HOELLE ! ¡ ! ¡
    • Egypt
    • deuceovspadez.webs.com/
When you create explods etc inside a custom state it uses p2's sprite data so it won't work the way you want.
So, you do this


P1 —

[Statedef -3]

[State 2OS]
type=explod
trigger1=!numexplod(2)&&enemy,stateno=customstate
id=2
postype=p2

[State 2OS]
type=explod
trigger1=!numexplod(3)&&enemy(enemy,teammode=simul),stateno=customstate
id=3
postype=p2

[State 2OS]
type=helper
trigger1=!numhelper(2)&&enemy,stateno=customstate
id=2
postype=p2

[State 2OS]
type=helper
trigger1=!numhelper(3)&&enemy(enemy,teammode=simul),stateno=customstate
id=3
postype=p2


Use explod or helper, or, for whatever reason, both

Note that ""customstate"" is not a valid trigger, It's purely for demonstration


[ 052012 ] Inazumachi 181/256  /  deviantART   /  2OS Grafphicsxz  Dead Anims ( Orochi/Mizuchi )  /  608's FX Volume 3
Re: [SOLVED] Add 2 Animations "type = ChangeAnim2" at the same time on same statedef
#8  January 04, 2011, 01:14:36 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
He wants p2 to play 2 animations however. That would be 2 animations using p2's sprites but p1's animation data. You can't do that using explods because it'll use p1's sprites and animation data.

If he just wants a flame effect or whatever, what you have will work fine. But if he wants 2 different hit anims overlaid on top of each other that's not going to do it.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.
Re: [SOLVED] Add 2 Animations "type = ChangeAnim2" at the same time on same statedef
#9  January 04, 2011, 03:34:38 pm
  • avatar
  • **
Yes I thought about a special p1's move that'll hit P2. Then :

- P2's body'll be thrown with special animation coded on P1's air file.

- And at the same time a "soul" of P2 (ghostlike) would be separate from his body and caught somewhere on the screen by P1's special move. The P2's soul would move with animation coded on P1's air file too.

- After a certain time, P2's soul'll join his body and then fight'll go on.

But it seems not possible.
Re: [SOLVED] Add 2 Animations "type = ChangeAnim2" at the same time on same statedef
#10  January 04, 2011, 06:08:53 pm
  • ***
  • Life is Life... WTF!!
    • www.mugenimperiolatino.com/index.php
yes you can, but the best way to make that is adding a special anim in your player (target player) so, in the custom state you cand use a simple changeanim2 to enemy and a explod or helper with custom anim, previous defined, to complete your code...

look this, this is what im talking about XD, yes i know its a %#%$ :twisted: but i did that in 30 mins XD: (Triple Kung Fu Palm command ↓→↓→ + x or y)

http://www.megaupload.com/?d=SQ65DGBI

 :-X

[

Nice userbars no? :P Make click & Download something nice for your Mugen!!!
________________________________
Re: [SOLVED] Add 2 Animations "type = ChangeAnim2" at the same time on same statedef
#11  January 05, 2011, 09:42:27 am
  • avatar
  • **
Allright I see. Well It ll be long to modificate all players files. I ll think about something other I suppose :x But thank you very much leandro for your effort.
Re: [SOLVED] Add 2 Animations "type = ChangeAnim2" at the same time on same statedef
#12  January 05, 2011, 12:41:26 pm
  • ***
  • Life is Life... WTF!!
    • www.mugenimperiolatino.com/index.php
not all files just Air file, create here your custom anims XD for example the "run" anim like i used, mmm do you know about M.Bliss Anims? or Mary throws anims (Snk Characters)  or the shockwave anims?... these anims are coded in the character and when he goes a custom state by enemy... in the codes it use changeanim if this anim exist XD, think in that... if you have your "selfanim" you can use a helper or a explod to make differents things, don't care if you are in a enemy state, and this actions doesn't reads from enemy. i don't know how to xplain better XD sorry.

But what thing are u trying to do... maybe if you show us an example we could help you... XD
bye bye!
[

Nice userbars no? :P Make click & Download something nice for your Mugen!!!
________________________________
Re: [SOLVED] Add 2 Animations "type = ChangeAnim2" at the same time on same statedef
#13  January 05, 2011, 02:46:35 pm
  • avatar
  • **
Well, I wanted to make a special P1's attack that would stuck P2's physical body in a dizzy animation (animation 2).
P1 would be able to continue to punch this P2's physical body with reduced damages.

P2's soul would have been separated from his body (animation 1) when P1's landed his special attack. I wanted this "soul" be thrown in air like after a normal attack that makes fall. After landing, P2's soul ll fast fuse with his physical body. End of the 2 P2's animations.

In fact I want to create 2 different sprites of P2 at the same time, each one doing 1 animation coded in P1's air file.
Re: [SOLVED] Add 2 Animations "type = ChangeAnim2" at the same time on same statedef
#14  January 06, 2011, 10:38:39 pm
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
Right, so the way to do that is allow the initial hit to deal 2 hits, and have p2 create a helper in state 0.

This is actually a really BAD hack, but it's the only way to achieve what you want. Having p2 create a helper gives you a second thing to hit with your attack and control in a custom state.

The helper needs to start in something that exists or it causes issues, 0 is pretty safe. Still not a good method though.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.
Re: [SOLVED] Add 2 Animations "type = ChangeAnim2" at the same time on same statedef
#15  January 07, 2011, 11:21:09 am
  • avatar
  • **
Allright, thank you for explaining this. It's not really a big problem. I can find other ideas that could fit.