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
26
S
8
G
4
Posts: 68
Reputation: 4,424

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
26
S
8
G
4
Posts: 68
Reputation: 4,424


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 37 guests