Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Slasher on Tue 07/06/2016 19:00:51

Title: SOLVED movetimer:0.000000
Post by: Slasher on Tue 07/06/2016 19:00:51
I think i have had this before:

text on lable (gpanel: audio volume) ingame reads: movetimer:0.000000

can't remember what i did last time i got that text.
Title: Re: movetimer:0.000000
Post by: Khris on Tue 07/06/2016 19:07:39
  // integer
  lblMoveTimer.Text = String.Format("movetimer: %d", movetimer);
 
  // text
  lblMoveTimer.Text = String.Format("movetimer: %s", some_string_variable);


You've probably used %f, which interprets the value as float. Check the manual's string formatting section for more info.
Title: SOLVED Re: movetimer:0.000000
Post by: Slasher on Tue 07/06/2016 19:13:43
Hi Khris,

it was the FloatingHotspot Module that was the problem (it uses Label1)

I simply moved that label ( Label1) off the gui and made a new one.

Now ok.

cheers