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

Username:   Password: 
 RegisterRegister   
 How to make only SOME of the screen colored with colorback
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Cinderblock




PostPosted: Sun Sep 18, 2011 12:29 pm   Post subject: How to make only SOME of the screen colored with colorback

What is it you are trying to achieve?
I am trying to make a status box where everything that is happening in the game will be printed in text (kind of like pokemon if anyone here has ever played it) on the top right corner i have a drawn box, i can easily locate all the text to appear there, the only problem is that the white colorback overides my box and erases a a bit of a line with every line of code, if i change the colorback to grey (the color of the box) it makes the whole line grey, i am looking to keep the text only inside of the box and


What is the problem you are having?
read above


Describe what you have tried to solve this problem
ive tried litterairly all me and my little programing brain can think of Razz nothing worked


Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)


Turing:


setscreen ("graphics:max;max")
Draw.FillBox (1, 645, 220, 400, grey)
Draw.Box (1, 645, 220, 400, black)
locate (5, 2)
put "hello"



Please specify what version of Turing you are using
latest version
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Sun Sep 18, 2011 12:39 pm   Post subject: RE:How to make only SOME of the screen colored with colorback

The whole line is grey because put "hello" implicitly means "hello + newline". You want to not colour the newline.
code:

put "hello"..
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: