695 posts
Location
In my basement.
Posted 20 April 2013 - 07:33 AM
Hi! I am trying to make a "building" game where you spend money on buildings and
make money from them.
But when i press a button the function printing the text turns the text background brown..
Why and how do i fix this?
Code:
function printStats()
term.setCursorPos(1,1)
print("Money: "..money)
print("Income: "..income)
print("Selected:")
print(selectItem)
end
13 posts
Posted 20 April 2013 - 07:45 AM
Make sure, after you are done printing brown background, set background color back to black.
term.setBackgroundColor(colors.black)
818 posts
Posted 20 April 2013 - 07:55 AM
Give us your whole code.
695 posts
Location
In my basement.
Posted 20 April 2013 - 07:59 AM
Give us your whole code.
Why?
So
you can copy it?
695 posts
Location
In my basement.
Posted 20 April 2013 - 08:06 AM
That worked drifter! :)/>
2088 posts
Location
South Africa
Posted 20 April 2013 - 08:21 AM
Give us your whole code.
Why?
So
you can copy it?
Wow. Really?
http://www.computercraft.info/forums2/index.php?/topic/475-get-help-faster-read-me/Post your code if you're not getting it to work! We can't tell you what's wrong if we can't see your code.
695 posts
Location
In my basement.
Posted 20 April 2013 - 08:36 AM
Give us your whole code.
Why?
So
you can copy it?
Wow. Really?
http://www.computerc...faster-read-me/Post your code if you're not getting it to work! We can't tell you what's wrong if we can't see your code.
Thats true..
But, I only posted the relevant code so the ones that helped me didn't need to look through all of it.
8543 posts
Posted 20 April 2013 - 08:43 AM
No, you clearly didn't post the relevant code, since there isn't anything in that code that sets the background color to brown. Nobody is interested in stealing your code here. If we ask for something, it's only to try to help you better. Getting upset with those trying to help you is only going to make them not want to help you.
695 posts
Location
In my basement.
Posted 20 April 2013 - 11:14 PM
No, you clearly didn't post the relevant code, since there isn't anything in that code that sets the background color to brown. Nobody is interested in stealing your code here. If we ask for something, it's only to try to help you better. Getting upset with those trying to help you is only going to make them not want to help you.
Oh, sorry. Didn't realize that…
edit: I've had people stealing code from me before so I'm being careful on posting certain codes.
(Sorry for any spelling mistakes)
818 posts
Posted 21 April 2013 - 01:29 AM
And you still have yet to give us the code. If you are so scared of people stealing your code then maybe a public forum where you ask for help is not the best option.
7508 posts
Location
Australia
Posted 21 April 2013 - 01:34 AM
And you still have yet to give us the code.
That worked drifter! :)/>
If you are so scared of people stealing your code then maybe a public forum where you ask for help is not the best option.
Indeed. Maybe a PM or more private forum would be better suited…
695 posts
Location
In my basement.
Posted 21 April 2013 - 06:30 AM
And you still have yet to give us the code.
That worked drifter! :)/>
If you are so scared of people stealing your code then maybe a public forum where you ask for help is not the best option.
Indeed. Maybe a PM or more private forum would be better suited…
True, true.