[SOLVED] How do I object duplicate and preserve graphics

Get help using Construct 2

Post » Mon Nov 16, 2015 10:27 pm

Hello, my game is two players, I already have the code and graphics of player one, now I have to do the second player.

The second player is just like the first, the difference is the graphics and controls, therefore, to create the second player I duplicate the first player, but when I change the graphics for the second player, the graphics of the first player also changes.

Then, how I can change the graphics of the second player without affecting the graphics of the first player?.
Last edited by The Mnk on Tue Nov 17, 2015 11:38 am, edited 1 time in total.
B
29
S
12
G
20
Posts: 756
Reputation: 13,855

Post » Mon Nov 16, 2015 10:32 pm

You can add a new animation, and also variable, say playerID

So player 1 might have animation Alien, and playerID of 1
Player 2 might have animation Human, and playerID of 2
B
41
S
17
G
8
Posts: 484
Reputation: 8,261

Post » Mon Nov 16, 2015 10:48 pm

Another way would be to clone the player instead of copy it..
That would mean you'd have to either duplicate player1's code for Player2 or put them both in a family and reference that in the events..
Events pertaining to either player1 or player2 could always be done by referencing just the correct one..
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 » Tue Nov 17, 2015 11:02 am

Ok, I duplicate the objects, I can not do families that currently am with the free version.

I think so could get.
Thank you!.
B
29
S
12
G
20
Posts: 756
Reputation: 13,855


Return to How do I....?

Who is online

Users browsing this forum: Rudi55 and 6 guests