How do I make switching Between players

Get help using Construct 2

Post » Thu Jun 16, 2016 7:30 pm

Becouse this type very simple to use.
Image
And what happened if one of this players died? Maybe should to refer to the sprite by some - some ID , it would be possible to implement them as a doubly linked list , the type of stored last and next..
Image
I want to do it like this if someone died. So how do I make it? Please, your help be useful!
B
2
Posts: 1
Reputation: 154

Post » Thu Jun 16, 2016 9:09 pm

Hi
First creat a family for the players
put a variable ID on the family,
Player1 variable ID = 1
Player2 variable ID = 2
Player3 variable ID = 3
If family variable ID = currentCharacter ->family enabled input
Else family disabled
B
18
S
7
G
1
Posts: 56
Reputation: 3,000

Post » Fri Jun 17, 2016 1:02 pm

Thx, dieblume86, implemented it with families as you said. Also used array to make a list of characters, so now if the character is dead, we can simply use delete on array to remove him from list.
Image
B
3
Posts: 1
Reputation: 177


Return to How do I....?

Who is online

Users browsing this forum: Cub3D, David181, yiuyiu6666 and 26 guests