How do I make a customize character system

Get help using Construct 2

Post » Sat Dec 12, 2015 10:29 pm

:D :D :D The player chooses different skin tones and differ classes of character and even weapons? Telling me how to do this would be very helpful. Sending me a .capx file of this would earn yourself a big spot in my credits
B
25
S
6
G
4
Posts: 173
Reputation: 3,933

Post » Sat Dec 12, 2015 11:13 pm

As I mentioned in the other post, this is just another mechanic that is fairly simple to make if you know the basics of C2. You would need to make use of arrays and store inventory items as slots.
B
47
S
18
G
84
Posts: 2,273
Reputation: 49,800

Post » Sun Dec 13, 2015 11:41 pm

@plinkie I'm quite aware using arrays can get the work done however I'm not quite sure how to go about and that is what my question is asking
B
25
S
6
G
4
Posts: 173
Reputation: 3,933

Post » Sun Dec 13, 2015 11:44 pm

How have you set your character up?
Just animations or more complicated?

Just setting global variables would/could do this..
If Skintone is "white" set animation to..
etcetera..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sun Dec 13, 2015 11:50 pm

@LittleStain Yes I have my character ready, there is no real skintone players choose from shapes (circle squares or trangles) There are different designs which the player can choose from and there are three different weapon types
B
25
S
6
G
4
Posts: 173
Reputation: 3,933

Post » Sun Dec 13, 2015 11:54 pm

So you'd need one global variable for shape, one for design and one for weapon..

When the player chooses, set the variable..
On start of the game layout, set the right object and weapon depending on the variables..
Pretty easy..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sun Dec 13, 2015 11:58 pm

@LittleStain thanks for the clarification but um one more thing, how do I make it so that player can choose color using a slider bar???
B
25
S
6
G
4
Posts: 173
Reputation: 3,933

Post » Mon Dec 14, 2015 12:02 am

I'm not sure..

Do you have the colours as animations or are you using a webgl effect to change the colour?

A slider-bar only gives number-output, so you'd either use it to set the parameters of your effect or the number of the colour-animation..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Mon Dec 14, 2015 12:04 am

@LittleStain wait so if the colors were animations, would a slider bar help????
B
25
S
6
G
4
Posts: 173
Reputation: 3,933

Post » Mon Dec 14, 2015 12:09 am

Ayolabi12345 wrote:@LittleStain wait so if the colors were animations, would a slider bar help????


Help with what?
A slider bar is just a UI-element..
If you want the player to use a slider bar, you add one..
In my opinion UI-elements should be straightforward and easy to understand, so if you have for example 5 colours to choose from, I wouldn't use a slider-bar, but you are the creator..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Next

Return to How do I....?

Who is online

Users browsing this forum: BiffanyPFH and 29 guests