
-----------------------------------
Jordan5_0.1
Thu Nov 17, 2011 11:50 pm

realstr problem
-----------------------------------
I am trying to make a game with a timer. So the timer goes down. Now i don't want a put statement
i would like it in font.draw. The timer is not per seconds its just going down. Btw i am still new to turing so any help is appreciated


What is the problem you are having?
I am using realstr however atm it states that i have a syntax error. I have used the one from the realstr syntax guidelines however it does not work. I am also running turing 4.1.1 if that makes a diference idk


Describe what you have tried to solve this problem
Removing the : real and width. Changing it up but nothing works





var timer : real
var font1 : int
font1 := Font.New("Arial:72:bold")
timer := 20.00
loop
timer := timer - 0.013
realstr (timer : real, 5 : int) : string
Font.Draw (timer,maxx div 2,maxy div 2,font1,black)
end loop


Please specify what version of Turing you are using
Turing version 4.1.1

If you need anymore information just ask

-----------------------------------
Tony
Thu Nov 17, 2011 11:58 pm

RE:realstr problem
-----------------------------------
realstr is a function. You should read up on functions either in Turing's Documentation -- [tdoc]functioncall[/tdoc] or in the Turing Walkthrough
