How do I Make collisions constantly subtract from variables?

Get help using Construct 2

Post » Wed Oct 22, 2014 11:43 pm

zombie test hel-.png


Simple test above but My goal is that for every few ticks or seconds the zombies on the barracade to lower or add to barracades variable But the problem they will most likely remain contact on the barricade.

So they will stop adding/– from barracades hp variable.Because once then stop adding/- because they are still colliding with sed object.

Is there any easy way to fix this? other than making it to where zombie collided with object spawn object ( that damages the barracde ) in some weird hassling way ?

thanks (yes I know my spelling -.- )
You do not have the required permissions to view the files attached to this post.
Orphans are a never ending food source
B
6
S
1
G
1
Posts: 5
Reputation: 872

Post » Wed Oct 22, 2014 11:57 pm

You could do an every x seconds, is-overlapping wall, subtract from variable.
Check out my completed games on the Arcade! Capt. Doe Save the Universe! & Clicker Wizard!
B
66
S
17
G
8
Posts: 637
Reputation: 9,370

Post » Thu Oct 23, 2014 7:20 am

Chris is right, Collisions only trigger once when colliding where as 'Is overlapping' will continue to trigger for the whole duration.
ImageImage
B
120
S
23
G
7
Posts: 1,070
Reputation: 13,014


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, ChesVCF, OBLIVION, shinkan, Solomon, yiuyiu6666 and 25 guests