Surviving Hits

Get help using Construct 2

Post » Thu Nov 29, 2012 12:54 am

How do you make it so a boss will only die from a specific number of hits?
B
19
S
5
G
4
Posts: 63
Reputation: 3,937

Post » Thu Nov 29, 2012 2:01 am

@Carbon64

I would do these:

- Give the Boss object an Instance Variable, perhaps naming it "hitpoints".
- Decrease that variable on every hit.
- Destroy the boss when the variable becomes less than or equals to 0.aruche2012-11-29 02:02:03
B
163
S
120
G
9732
Posts: 42
Reputation: 4,875,331

Post » Thu Nov 29, 2012 2:35 am

Thanks!
B
19
S
5
G
4
Posts: 63
Reputation: 3,937


Return to How do I....?

Who is online

Users browsing this forum: Myrmex and 1 guest