How do I Add a Character creation

Just started using Construct 2? Post your questions here

Post » Thu Mar 13, 2014 11:19 pm

Hello C2,

I would like to add on my game a feature like this one :
The first time the player connect to the gme he need to create his/her character, choose the gender, the hair and the clothes
And after in game when you equip object with ID 1 your character get the paperdoll with ID 1 etc for ID2 ...

Thank you =D
B
19
S
7
G
2
Posts: 68
Reputation: 1,966

Post » Fri Mar 14, 2014 2:29 am

I think you have to be a lot more specific, in what the problem is :)

It sounds like you need someone to explain it from start to end, which would take several pages and then it might not even be as you wanted.
B
44
S
11
G
2
Posts: 1,182
Reputation: 6,838

Post » Fri Mar 14, 2014 9:43 pm

I haven't worked with Construct2 much, but I did use Game Maker for some time. In that one, I would create a naked template for the player, then add the hair, clothes etc on to that. So for the hair, make a seperate object that stays on top of the template's head. (in GM, I'd use "Hair.x = Template.x" and so on. Not sure how to do it in Construct2, but I guess it would be something similar.

Also, I'd create a new variable called Hair, then assign the player's chosen hair to that template. That way I can use that variable for all hair-stuff, no matter what hair the player chooses. I hope you understand what I mean.

Edit: For that matter, that is how a lot of "big" games do it. Resident Evil let you change costume, for instance. If I'm not mistaken, that is possible because the base model are naked, so they put the clothes on the model after you start the game. Naturally, the player won't see a naked character, but it means it's easy to remove the clothes and put other clothes on. Pretty sure this is also why some games have glitches where you see the character naked.
B
5
S
1
Posts: 43
Reputation: 655

Post » Sat Mar 15, 2014 9:18 am

I'm sure he want's character customisation as soon the game starts.
B
6
S
1
Posts: 37
Reputation: 600

Post » Sat Mar 15, 2014 9:56 pm

nimos100 wrote:I think you have to be a lot more specific, in what the problem is :)

It sounds like you need someone to explain it from start to end, which would take several pages and then it might not even be as you wanted.


This is what I have thought when I have read the post...
B
17
S
5
G
2
Posts: 173
Reputation: 2,085

Post » Sun Mar 16, 2014 3:40 pm

Hello Thank you for the answer,

As Bugasebi say : " I'm sure he want's character customisation as soon the game starts. ", this is what i would like to have, this is an example :

I take the game Ghost shooter for the example,

Before the game start and you can kill the monsters, i wish the player access a screen where he can create his character, something like the actual RPG or MMORPG, you have the base corpse, Man or Women, you can choose the Hair Style and the color, at the begin you have only one dress and after some kills you can drop new one then when you equip this one the dress skin change with the new one equipped.

I hope you understand, i know how to create the inventory, the random loot and the equipment system, my problem was for the Paperdoll System and the Character Creation screen.

Thank you =)
B
19
S
7
G
2
Posts: 68
Reputation: 1,966

Post » Sun Mar 16, 2014 4:00 pm

Bugasebi wrote:I'm sure he want's character customisation as soon the game starts.

I know, but that's just a new screen. I was talking more about how to get the character creator to work in the first place, so you won't have to have an individual sprite for every possible combination of clothes and character. Ten hats and ten shirts make a lot of possible combinations, after all. Better to equip the hat and shirt directly on to the character. ;)
B
5
S
1
Posts: 43
Reputation: 655

Post » Sun Mar 16, 2014 5:06 pm

This is what i think too ^^, for exemple i have design 6 hair style for men and 6 for women, with this 12 styles you can up more than hundred possibility if you add color, like black, blue, red, green, yellow, etc ... and the same thing for clothes, for the design i have use the base where i add some layers with the see or no option, for apply the different skin to my base.
B
19
S
7
G
2
Posts: 68
Reputation: 1,966

Post » Sun Mar 16, 2014 7:22 pm

Make a layout and name it Chara_Gen. Make sure it is loaded BEFORE your main game.

Set each group of customizable items in their own sprite above your ragdoll. (Such as spr_hair for hair)
Find the window that says "Animation Frames".
Right click and choose Add Frames.
Select each different resource (brown buzzcut, blonde mohawk, etc..) and import them as Frames.
Create a button or drop down list for each Sprite.

In the event window:
Make a global variable for each custom resource (hair,beard,gloves,etc..)
Create an "on layout start" event, then set the animation speed to 0 for each sprite.
Create an event upon the appropriate gui interaction that increases or decreases the corresponding variable by 1.
Create an event "On tick" then set the Frame for each sprite to the right variable. (spr_hair would be have the frame set to var_hair)

EDIT: I'm working on this same sort of thing myself, this is the system I used. Good luck!
B
12
S
1
Posts: 34
Reputation: 632

Post » Sun Mar 16, 2014 8:26 pm

Thanks raster i've find a way by using your method a little modified with button ^^ i will post after diner hehe,

And which way for save the selection and start game ^^' ?
B
19
S
7
G
2
Posts: 68
Reputation: 1,966

Next

Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 2 guests