Limit Health

Get help using Construct 2

Post » Tue Nov 06, 2012 6:15 pm

Sorry for posting another topic so soon but I have another quick question.

I have the player's health in my game stored in a global variable, I also have health pick ups that add 20 to his health. Is there a way to limit the value to 100?

Sorry if it's really simple.
B
2
G
1
Posts: 5
Reputation: 560

Post » Tue Nov 06, 2012 6:46 pm

Never mind, I figured it out by making the variable go to 100 even if you pick up a health pack that goes above 100.
B
2
G
1
Posts: 5
Reputation: 560


Return to How do I....?

Who is online

Users browsing this forum: Matthew de and 27 guests