playMaker

Author Topic: [SOLVED] Display float value of a horizontal slider on the screen  (Read 3212 times)

vrpostcard

  • Playmaker Newbie
  • *
  • Posts: 9
Hi,  I've just purchased Playmaker and am new to this programming 'voodoo'.  Could you tell me is it possible to display the float value of a slider next to the slider?  I've tried using a GUI label but cannot get the text to change to the float value.

Any help or suggestions would be greatly appreciated.

Thanks.
« Last Edit: June 04, 2012, 01:57:23 AM by Alex Chouls »

kiriri

  • Hero Member
  • *****
  • Posts: 506
Re: Display float value of a horizontal slider on the screen
« Reply #1 on: June 03, 2012, 01:21:11 PM »
gui label is the right way to go, generally you'd do everything just like you'd do in hard code. I recon you just missed the step to make the "int to string" action applied every frame, right?

So in your action you're using to display the slider and label, add the int to string action and make it repeat itself every frame.
Best,
Sven

vrpostcard

  • Playmaker Newbie
  • *
  • Posts: 9
Re: Display float value of a horizontal slider on the screen
« Reply #2 on: June 03, 2012, 07:40:40 PM »
You sir, are a champion.  This worked flawlessly.  You were slightly incorrect in the fact that I missed the whole 'int to string' step, not just applying the action every frame.  I was just trying to send the float value straight to the label.  More fool me.

I ended up using the 'convert float to string' action.

Many thanks for your help.

vrpostcard

  • Playmaker Newbie
  • *
  • Posts: 9
Re: Display float value of a horizontal slider on the screen [solved]
« Reply #3 on: June 03, 2012, 07:41:48 PM »
I'll mark this as solved.  Thanks.