How do I create different attributes for multiple characters

Get help using Construct 2

Post » Sat Sep 19, 2015 2:42 pm

I have more than one character in my game and they each have their own stats, jump, speed, power, etc. I don't know how to edit the jump stats using events or if that's even possible. How can I give each character their own speed and jump?
B
3
Posts: 9
Reputation: 195

Post » Sat Sep 19, 2015 3:07 pm

They each have their own stats, jump, speed, power, etc. , but you don't know how to give it to them?
So do they have them or not?

I guess using instance variables should work for this, right?
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 » Sat Sep 19, 2015 3:18 pm

Yes to the first question.
Not yet to the next.
I'm not sure if instant variables would work. I'm still new to the program.
B
3
Posts: 9
Reputation: 195

Post » Sat Sep 19, 2015 3:21 pm

BlueStarbie wrote:Yes to the first question.
Not yet to the next.
I'm not sure if instant variables would work. I'm still new to the program.


I am sure instance variables would work..

Give your characters instance variables, set them to the right amount and in the events use the instance variables as the values..
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 » Sat Sep 19, 2015 3:31 pm

For example, how would I use an instant variable for different speeds?
B
3
Posts: 9
Reputation: 195

Post » Sat Sep 19, 2015 3:52 pm

That would be something like:

set speed to character.speed

speed being an instance variable for character..
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


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 29 guests