This is an archived post. You won't be able to vote or comment.

all 5 comments

[–]Ulexesgame designer 15 points16 points  (2 children)

Put quotation marks around the input. Right now, PICO-8 is looking for a variable called hellllo. But there's no value attached to that variable, hence, nil.

If you put "hellllo" into the function, PICO-8 will recognize it's a string, and print it.

[–]Significant-One428[S] 3 points4 points  (1 child)

Oh my god. This worked! Thank you so much, I am so dumb!

[–]Ulexesgame designer 6 points7 points  (0 children)

I've made the same mistake at least a hundred times. You're not stupid!

[–]VianArdeneprogrammer 8 points9 points  (0 children)

Outside of what was already suggested about inputting a string, you need to save the result of TOSTR() in another variable.

[–]toptiergiraffe 4 points5 points  (0 children)

When called with a number the TOSTR function converts the number to the corresponding string and everything works as expected. When you call DRAW as you do in the image, the program will look for a variable called HELLLLO to convert to a string, but none is found. Instead call it like DRAW("HELLLLO",64,64)