A health and limit in one text. Forum Home > Construct 2 General > How do I....? |
Post Reply
|
| Author | |
Post Options
Quote Reply
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 |
|
![]() |
|
Post Options
Quote Reply
Posted: 10 Dec 2011 at 10:10am |
|
![]() |
|
Post Options
Quote Reply
Posted: 10 Dec 2011 at 10:17am |
|
|
Thank you Kyatric!
|
|
![]() |
|
Post Options
Quote Reply
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...
|
|
![]() |
|
Post Options
Quote Reply
Posted: 10 Dec 2011 at 1:04pm |
|
I don't know only this one :) |
|
![]() |
|
Post Options
Quote Reply
Posted: 11 Dec 2011 at 2:54pm |
|
|
how to do that the number of health that she could never be greater than max health?
|
|
![]() |
|
Post Options
Quote Reply
Posted: 11 Dec 2011 at 4:09pm |
|
|
You mean like this? demo
Edited by l33twash0r - 11 Dec 2011 at 4:09pm |
|
![]() |
|
Post Options
Quote Reply
Posted: 11 Dec 2011 at 5:37pm |
|
|
Or by using the usefull clamp
http://dl.dropbox.com/u/23551572/C2/clampHealth.capx |
|
![]() |
|
Post Options
Quote Reply
Posted: 12 Dec 2011 at 10:38am |
|
|
Yes something like that :) this is good for rpg games :)
|
|
![]() |
|
Post Options
Quote Reply
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. |
|
![]() |
|
Post Reply
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |