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.
B
1
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"

https://www.scirra.com/manual/126/system-expressions
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 http://www.mndassociation.org/
B
64
S
33
G
47
Posts: 1,194
Reputation: 30,832

Post » Tue Mar 11, 2014 12:54 am

thanks!
B
1
Posts: 7
Reputation: 139


Return to How do I....?

Who is online

Users browsing this forum: dop2000, Yahoo [Bot] and 64 guests