Log In  

Cart #printnobreak-0 | 2019-12-23 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

Printing Without Linebreaks

A redditor posted on the PICO-8 subreddit, and I spent 30 minutes trying to solve his/her problem.

They said:

I have a function that prints several numbers, but with each iteration there's a linebreak (\n)  
when I print. 

How do I make the printouts come right after each other, instead of on separate lines?

My solution, was the above. It's not perfect, but I didn't have a lot of time to work on it.
I'd like to see anyone fix my code, or come up with a better way, as I found this an interesting

P#71356 2019-12-23 23:32

[Please log in to post a comment]