Dynamic/Runtime-Chosen Sprites

For questions about using Classic.

Post » Mon May 09, 2011 4:53 pm

I'm slightly new to Construct, but I'm enjoying it a lot because it's relatively simple to mash up python with it. However, it's throwing some problems that would be easy to do all in-code and making them a bit more confusing. So:

I want my player to choose a class when he starts. This means that when the game starts they'll have a different representation in sprite form. How is best to do this? Do I use an invisible box to represent the player object, and then tell a sprite to follow the box as it moves? That way the sprite could be set using variables I guess.

Or is there an easier way that I'm missing? The game is networked, so the class chosen will be passed to the server who will also need to use that representation on their screen.
B
1
G
1
Posts: 6
Reputation: 437

Post » Mon May 09, 2011 5:05 pm

Maybe just have different animation names for each class? Then you just send the text of which class was chosen.
"Construct 4 lets YOU make advanced games! (maybe)" Construct Classic - Examples Kit
B
86
S
28
G
13
Posts: 2,092
Reputation: 15,009

Post » Mon May 09, 2011 5:09 pm

Okay, that's a good idea. The animations are pretty simple anyway so it wouldn't be a huge thing.

Thanks for the suggestion.
B
1
G
1
Posts: 6
Reputation: 437

Post » Mon May 09, 2011 5:27 pm

Its a matter of preference,personally I thinkk your original invisible sprite method is simpler, or better yet, so you can make them all move different would be put all classes in a family, and use the family for all those shared events, and then if there are events unique to a class, use that specific sprite for the event
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 4 guests