YesNoOk
avatar

Two elements separated on sprites (Read 284 times)

Started by bfdm, December 13, 2013, 03:51:58 pm
Share this topic:
Two elements separated on sprites
#1  December 13, 2013, 03:51:58 pm
  • *
    • Brazil
    • brenomacedo1995@gmail.com
I'm making Ibuki from street fighter III ... Her hair and her body are separated in different sprites. How can I put her hair in game? I don't want edit every sprite, adding her hair to her head.

I tried to do this with a helper. It almost worked, but her hair disappear after some time.

Hair:

http://i1370.photobucket.com/albums/ag278/brenomacedo1995/mugen009_zps3d2b61f4.png

No hair:

http://i1370.photobucket.com/albums/ag278/brenomacedo1995/mugen011_zps1ea65705.png

Crouched with no hair:

http://i1370.photobucket.com/albums/ag278/brenomacedo1995/mugen010_zpsa109fcd0.png

Obs: I tried to post the images directly but, the forum didn't let me.
Re: Two elements separated on sprites
#2  December 17, 2013, 01:14:52 am
  • *****
  • Most dangerous person in Mugen
    • USA
    • caddie.smeenet.org

  • Online
Helper is probably the easiest way to do it, with the exception of required sprites where the hair needs to be attached. Make sure your helper is not going into an invalid state or animation.
Re: Two elements separated on sprites
#3  December 17, 2013, 01:35:26 pm
  • *
    • Brazil
    • brenomacedo1995@gmail.com
Yeah ... I'll find a way to make her hair changestate everytime that she moves.
Re: Two elements separated on sprites
#4  December 17, 2013, 06:41:01 pm
  • *****
  • Video Game Veteran
    • USA
    • gcnmario.free.fr
If you're going with helper type animations, I don't think you necessarily need a changestate every time she moves. You just need one state, multiple animation actions, and a variable with a changeanim controller.

"You must defeat my flaming
dragon punch to stand a chance."
Re: Two elements separated on sprites
#5  December 17, 2013, 06:53:01 pm
  • *
    • Brazil
    • brenomacedo1995@gmail.com
Huum, good idea! ... But, the thing is, the changeanim controller I can do, but variables, that's is the problem I can't deal with it. I am not used to it. You can give me one exemple?
Re: Two elements separated on sprites
#6  December 18, 2013, 11:37:27 pm
  • *****
  • Video Game Veteran
    • USA
    • gcnmario.free.fr
My SFII Vega does something similar with his Claw attachment.

Spoiler, click to toggle visibilty

Though you're going to run into the same problem everything else have when a character gets thrown by an opponent.
But it's the only way, other than having the hair part itself attached on the sprite SFF.

"You must defeat my flaming
dragon punch to stand a chance."
Re: Two elements separated on sprites
#7  December 19, 2013, 02:59:27 pm
  • *
    • Brazil
    • brenomacedo1995@gmail.com
Ok, I will try something with this ... Thanks!