Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: juksawats on January 18, 2013, 01:13:13 AM

Title: putting float variable into a part of string / GUI text[SOLVED]
Post by: juksawats on January 18, 2013, 01:13:13 AM
Hello there

Im very new to playmaker and would appreciate your kind helps on this :

- I Created 2 GUItexts in a scene
- I Created a SFM in the scene
- I Created 2 Global variable as float , named PlayerHP and EnemyHP

- At state1 I used "Set float Value" action to set PlayerHP and EnemyHP to begin at 200

- Now I am trying to find a way to put the 2 variables on GUItexts by using "Set GUI Text" but I don't know how to put a mix between real text and variable using the actions
(like "Your HP : " & Player HP)

Thanks again in advance

Regards
Title: Re: putting float variable into a part of string / GUI text
Post by: jeanfabre on January 18, 2013, 01:16:01 AM
Hi,

 you have a lot of actions to convert between variables. look at the "convert" action category in the action browser

https://hutonggames.fogbugz.com/default.asp?W360
https://hutonggames.fogbugz.com/default.asp?W358

then to compose everything into a single string, you can use:
https://hutonggames.fogbugz.com/default.asp?W372

Bye,

 Jean
Title: Re: putting float variable into a part of string / GUI text
Post by: juksawats on January 18, 2013, 01:19:41 AM
Thank you !
That is exactly what Im looking for :D