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

Username:   Password: 
 RegisterRegister   
 put statements clearing line in turing4
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
RobinK




PostPosted: Wed Mar 31, 2004 11:31 pm   Post subject: put statements clearing line in turing4

I just switch to turing405 recently. I am now modifing one of my games to use some of turing4's features.

But I noticed that when a put statement is used, the whole line is cleared. This renders my whole program useless. How do I prevent that?
Sponsor
Sponsor
Sponsor
sponsor
TheZsterBunny




PostPosted: Thu Apr 01, 2004 2:46 am   Post subject: (No subject)

when you put, it clears the whole line.

try adding .. to the end of the line

the .. allows turing to continue along a line. This is useful for:

a) keeping existing information
b) getting input from the user

also, some handy similar commands

get variable:* - gets everything until the token (enter) rather than space.
put "things".. - keeps the rest of the line for use

Its too early to think more

-bunny
Tony




PostPosted: Thu Apr 01, 2004 8:59 am   Post subject: (No subject)

I'm guessing that the issue here is the fact that then \n character is used the entire line becomes of the background color Confused

I would sujest using Font.Draw() instead to prevent clearning of the background image
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Jodo Yodo




PostPosted: Thu Apr 01, 2004 5:43 pm   Post subject: (No subject)

If you mean that the text is killing all of the text after it, then what Zster bunny said is correct (add '..' to the end). Otherwise, if what you mean is that the text is creating a band of colour that isn't the same as the background (assuming it isn't textured, since if it was, you'd be advanced enough to probably know about the '..' thing), simply do this:

code:

colourback (colourthingy)


Where 'colourthingy' is the name or number of the colour.
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  [ 4 Posts ]
Jump to:   


Style:  
Search: