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
18
S
5
G
4
Posts: 63
Reputation: 3,912

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
157
S
114
G
8216
Posts: 42
Reputation: 4,116,739

Post » Thu Nov 29, 2012 2:35 am

Thanks!
B
18
S
5
G
4
Posts: 63
Reputation: 3,912


Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go and 21 guests