Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 realstr problem
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Jordan5_0.1




PostPosted: 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
Sponsor
sponsor
Tony




PostPosted: Thu Nov 17, 2011 11:58 pm   Post subject: RE:realstr problem

realstr is a function. You should read up on functions either in Turing's Documentation -- functioncall or in the Turing Walkthrough
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: