How do I

Get help using Construct 2

Post » Mon Mar 10, 2014 8:01 pm

How do i make it so when i pick up a health potion its not making my health go past the width i made it.
Posts: 7
Reputation: 139

Post » Mon Mar 10, 2014 8:21 pm

Without the capx or screen grabs we will only be guessing - but if you are doing what I think you are doing it will be something like

pick up health potion
add to health the value of the health potion
set width of health sprite to health

close ?

in which case you just need to check if health is now bigger than maximum health and if so make health equal maximum health

look at "clamp"
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the
Posts: 1,194
Reputation: 30,912

Post » Tue Mar 11, 2014 12:54 am

Posts: 7
Reputation: 139

Return to How do I....?

Who is online

Users browsing this forum: BadMario, dznerpro, ultrafop and 6 guests