How do I Increase Health in a RTS game

Get help using Construct 2

Post » Fri Oct 24, 2014 11:44 pm

I want to make a tank game where enemies have more health than players.I can't find where to change enemy health.Does anyone know how?Is it possible?
B
4
S
1
Posts: 9
Reputation: 483

Post » Sat Oct 25, 2014 12:16 am

You need to use Instance variables :
For example :

Enemy health = 5
Bullet on collision with enemy ------------- enemy subtract 1 from health
B
60
S
10
G
10
Posts: 1,013
Reputation: 9,155

Post » Sat Oct 25, 2014 12:31 am

okay
B
4
S
1
Posts: 9
Reputation: 483

Post » Sat Oct 25, 2014 4:24 am

You can also make health bars.
Do this.
Make a bar (colored red or something) and set the width to (overallhealth)x
Then make it every tick set bar width to (health-globalvariable-)x
B
3
Posts: 4
Reputation: 183

Post » Sun Oct 26, 2014 7:07 pm

I found out how to do it.Turns out I needed to inscrease the base health and not the turret health
B
4
S
1
Posts: 9
Reputation: 483


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, dand, Google [Bot], tinhofiel and 28 guests