Families and Variable

For questions about using Classic.

Post » Wed Nov 17, 2010 8:34 pm

Hi,

Question: if I've got two player game, and each of player sprite characters is in family 'player'. On collision of one of them with enemy, where event looks like this 'on enemy family collision with player family subtract 10 from player.value(life)', will individual player that is on collision with enemy sprite will lose life or will it subtract from both players?

Thanks
My professional Royalty Free Music at Scirra Assets Store
--------------------------------
Specs: i5 2500, 16gb of ram, gtx 770, win 7, Focusrite Scarlett 8i6, Mackie mr8mk2, Alesis 320, browsing the net on chrome.
B
75
S
20
G
19
Posts: 1,931
Reputation: 17,134

Post » Wed Nov 17, 2010 8:50 pm

It will affect only the player colliding.
B
85
S
27
G
79
Posts: 5,016
Reputation: 54,766

Post » Wed Nov 17, 2010 9:26 pm

thx
My professional Royalty Free Music at Scirra Assets Store
--------------------------------
Specs: i5 2500, 16gb of ram, gtx 770, win 7, Focusrite Scarlett 8i6, Mackie mr8mk2, Alesis 320, browsing the net on chrome.
B
75
S
20
G
19
Posts: 1,931
Reputation: 17,134


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 2 guests