A health and limit in one text.

Forum Home Forum Home > Construct 2 General > How do I....?
 Post Reply Post Reply
Author
536 Rep
Post Options Post Options   Quote Rexu Quote  Post ReplyReply Direct Link To This Post Topic: A health and limit in one text.
    Posted: 10 Dec 2011 at 10:00am
Hello! I don't know how to make a health and health limit in one text.

I need somenthing like that " "Health" &hp "/" &hplimit"

I'm naab :D
Back to Top

Moderator
28,540 Rep
Post Options Post Options   Quote Kyatric Quote  Post ReplyReply Direct Link To This Post Posted: 10 Dec 2011 at 10:10am
Back to Top
536 Rep
Post Options Post Options   Quote Rexu Quote  Post ReplyReply Direct Link To This Post Posted: 10 Dec 2011 at 10:17am
Thank you Kyatric!
Back to Top
3,667 Rep
Post Options Post Options   Quote 01lifeleft Quote  Post ReplyReply Direct Link To This Post Posted: 10 Dec 2011 at 12:31pm
Hehe, i had an event like that one, too.

If you didn't read this tutorial before, then you should: Native Expressions in Construct 2
Rolling...
Back to Top
536 Rep
Post Options Post Options   Quote Rexu Quote  Post ReplyReply Direct Link To This Post Posted: 10 Dec 2011 at 1:04pm
Originally posted by 01lifeleft 01lifeleft wrote:

Hehe, i had an event like that one, too.

If you didn't read this tutorial before, then you should: Native Expressions in Construct 2

I don't know only this one :)
Back to Top
8,491 Rep
Post Options Post Options   Quote delgado Quote  Post ReplyReply Direct Link To This Post Posted: 11 Dec 2011 at 2:54pm
how to do that the number of health that she could never be greater than max health?
Back to Top
3,068 Rep
Post Options Post Options   Quote l33twash0r Quote  Post ReplyReply Direct Link To This Post Posted: 11 Dec 2011 at 4:09pm
You mean like this? demo

Edited by l33twash0r - 11 Dec 2011 at 4:09pm
Back to Top
11,785 Rep
Post Options Post Options   Quote Yann Quote  Post ReplyReply Direct Link To This Post Posted: 11 Dec 2011 at 5:37pm
Back to Top
8,491 Rep
Post Options Post Options   Quote delgado Quote  Post ReplyReply Direct Link To This Post Posted: 12 Dec 2011 at 10:38am
Yes something like that :) this is good for rpg games :)
Back to Top
252 Rep
Post Options Post Options   Quote Sankvtw Quote  Post ReplyReply Direct Link To This Post Posted: 31 Mar 2013 at 3:39pm
Would this work with sprite variables as well as global variables?

so instead of ( Set Text to "Health: " & Health & "/" & Healthmax )

Would it be ( Set Text to "sprite1.Health: " & sprite1.Health & "/" & sprite1.Healthmax ) ?
Then ( Set sprite1.health to Clamp(sprite1.Health+5,0,sptire1.HealthMax) )


would that work for when you have several sprites controlled by the player? Say in like a FF style turn based rpg or a multiplayer gauntlet type game? I know they are super complex but as a just for instance.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down