fixed collisions with mutiples of the same monster

Get help using Construct 2

Post » Wed Jul 31, 2013 1:56 pm

Hi all!
I have a problem where if the player collides with an object that has multiples of themselves causes accumulated damage.

the way i have hp and damage dealt is a simple
if A collides with B than subtract the variable of the players hp by 1
somehow it ends up with 5 when 5 of the same monsters are in a layout even though ive only collided with just one of the monsters
B
5
S
1
Posts: 88
Reputation: 653

Post » Wed Jul 31, 2013 3:06 pm

It would be better if you post exactly how your code looks or if you share a capx. When the objects collide did you use a "trigger once" condition to substract hp??
B
10
S
4
Posts: 133
Reputation: 1,543

Post » Thu Aug 01, 2013 2:08 pm

woah hold on, the trigger once command? i never knew that even existed!
so how would that work?

player on collision with monster
   =>system trigger once = subtract 1 hp

??

also working on a capx give me a secAngelRave2013-08-01 14:08:49
B
5
S
1
Posts: 88
Reputation: 653

Post » Thu Aug 01, 2013 3:49 pm

actually what i just mentioned seems to have worked!

thanks alot for the help!
B
5
S
1
Posts: 88
Reputation: 653


Return to How do I....?

Who is online

Users browsing this forum: ASHKAR, kellehk, ST314 and 17 guests