realstr problem
Author |
Message |
Jordan5_0.1
|
Posted: Thu Nov 17, 2011 11:50 pm Post subject: 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
Turing: |
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 |
|
|
|
|
|
Sponsor Sponsor
|
|
|
Tony
|
|
|
|
|
|
|