How do I avoid ìnstant death with melee attacks.

Get help using Construct 2

Post » Tue Sep 23, 2014 10:38 pm

Hey there,
Im trying to make my enemies health go down only 10hp when it's being attacked.
Right now this is what I have:
The result is the "Skullworm" dying instantly when it gets attacked, instead of just losing 10 hp.
It probably has to do something with overlapping.. Does anyone know a good solution to this?
Image
Skullworm hp=20, so 2 attacks should kill it instead of just 1.
The spawn Sprite event is just some damage numbers displaying you did 10 damage.
B
8
S
4
Posts: 120
Reputation: 1,266

Post » Tue Sep 23, 2014 10:45 pm

On collision should work in that case, otherwise you would want to trigger that event once only
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
54
S
22
G
18
Posts: 2,123
Reputation: 17,150

Post » Tue Sep 23, 2014 11:18 pm

Thanks!, I knew it would be something simple like that.
B
8
S
4
Posts: 120
Reputation: 1,266

Post » Tue Sep 23, 2014 11:19 pm

Thanks!, I knew it would be something simple like that.
B
8
S
4
Posts: 120
Reputation: 1,266


Return to How do I....?

Who is online

Users browsing this forum: dop2000 and 7 guests