Log In  

After modifying the code I got rid of the error message however now the problem is that its not printing

Code:
h=7
t=64
if h < 23 then
print("to much food",t,t,0)
end

Info:
h=7 it can be upped by 1 when x is pressed and lowered when z is pressed
if h reaches 23 or 7 it will say at that sprite

P#109842 2022-04-07 13:22 ( Edited 2022-04-07 13:50)

Did you set your background to something other than black (0)? If not, then your print statement is probably working, it's just printing black text on a black background. Try changing the 0 to 7 in your print statement and see if it works.

P#109844 2022-04-07 14:06

the background is dark green (not 0)

P#109845 2022-04-07 14:15 ( Edited 2022-04-07 14:16)

Hmmmm, without seeing the rest of the code it's hard to say for sure what's up. Can you post the rest of the code (the _update function where you update h when buttons are pressed would be helpful to see)?

You can use the 3 backtick characters at the start and end of your code in your comment here to format it as code to make it easier to read, like thus:

h=7
t=64
if h < 23 then
print("to much food",t,t,0)
end
P#109847 2022-04-07 14:27

If you want I can post the cart so you can see my messy code and so you can fix it

P#109848 2022-04-07 14:42 ( Edited 2022-04-07 14:45)

Haha, well I can't promise I can fix it, but definitely posting the cart will help with the diagnosis!

P#109849 2022-04-07 14:49

k I will

P#109850 2022-04-07 14:51

hey sry it took so long heres the link
https://www.lexaloffle.com/bbs/?pid=109853#p

P#109854 2022-04-07 15:02

wait I screwed up

P#109855 2022-04-07 15:03

ok so well IDK how to do it normally so the best I can do is to tell you to go to splore co type cookie crumb and edit the first result and tell me the problem so I can fix it again sorry

P#109856 2022-04-07 15:07 ( Edited 2022-04-07 15:11)

[Please log in to post a comment]

Follow Lexaloffle:        
Generated 2022-05-04 00:20:12 | 0.006s | Q:15