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
71
S
19
G
19
Posts: 1,919
Reputation: 16,910

Post » Wed Nov 17, 2010 8:50 pm

It will affect only the player colliding.
B
79
S
24
G
54
Posts: 4,735
Reputation: 40,733

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
71
S
19
G
19
Posts: 1,919
Reputation: 16,910


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 3 guests