[Solved] Fighting game with Bones behaviour

For questions about using Classic.

Post » Tue Apr 20, 2010 7:17 pm

Hi everyone !
It's my first post on this forum so I would like to thanks the developers of Construct first for this awesome program ! Thank you so much !

So, here is my problem :
I would like to make a fighting game (in super smash bros style) and to make the animations easiers I would like to use the "Bones" behaviour.
Here is my question, how can I re-use the bone behaviour of one "skeleton" with another character.

I am not sure I'm clear : I create a skeleton (with bones) and I would like use it again for aniother character, how can I manage to do that ?

Thanks in advance :)

(ps: sorry if i've made spelling errors I'm french !)
B
2
G
3
Posts: 15
Reputation: 1,207

Post » Tue Apr 20, 2010 11:58 pm

First, welcome to the forums and your English is fine!

You can't really re-use animations with the bone behavior. You can get around it though by importing every character graphic into the same skeleton and changing the sprites at runtime. So you have your character's sprites: body, arms, legs, etc, all set up with the bone behavior. On the animation tab for each body part, make a new animation for each character you have, name it appropriately and import that character's graphic. Lastly, use a private variable that contains the name of the character you want to use. Then just switch all of the sprite animations for each body part to that private variable.

That's a quick overview of how I do it. Hope it makes sense!
B
77
S
49
G
25
Posts: 346
Reputation: 17,409

Post » Wed Apr 21, 2010 12:28 am

Thanks a lot for your answer UberLou !

However, I'm not sure to understand... :(
So you have one skeleton and inside it, 2 differents head for exemple.
How the fact of changing a variable can change my skin ?

What if you want to spawn multiple characters ?

Thanks in advance ! (again ;) )
B
2
G
3
Posts: 15
Reputation: 1,207

Post » Wed Apr 21, 2010 2:47 am

Yup, you have one skeleton with multiple heads, arms etc.

It's better explained with an example:
[url:l6rgljkn]http://www.louisferina.com/games/characters_bone.cap[/url:l6rgljkn] (version 99.84)
B
77
S
49
G
25
Posts: 346
Reputation: 17,409

Post » Wed Apr 21, 2010 10:29 am

Thank you so much for your example ! :D
I totaly get it !
B
2
G
3
Posts: 15
Reputation: 1,207

Post » Wed Apr 21, 2010 1:54 pm

I cant get the bones to work because it says im missing the file, but i look and i have it? Does anyone else have this problem?
B
2
S
1
G
3
Posts: 49
Reputation: 1,098


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 4 guests