playMaker

Author Topic: putting float variable into a part of string / GUI text[SOLVED]  (Read 3381 times)

juksawats

  • Playmaker Newbie
  • *
  • Posts: 3
putting float variable into a part of string / GUI text[SOLVED]
« 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
« Last Edit: January 18, 2013, 02:03:18 AM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: putting float variable into a part of string / GUI text
« Reply #1 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

juksawats

  • Playmaker Newbie
  • *
  • Posts: 3
Re: putting float variable into a part of string / GUI text
« Reply #2 on: January 18, 2013, 01:19:41 AM »
Thank you !
That is exactly what Im looking for :D