LoginLogin
Nintendo shutting down 3DS + Wii U online services, see our post

How would I port code from PTC to this?

Root / Programming Questions / [.]

Epic_MankyCreated:
I've been working on a game on Petit Computer, but not many people use that anymore, so I want to port the game to SmileBASIC. But the problem is I noticed some of the commands aren't in SmileBASIC (such as PNLSTR), and I don't know how to edit fonts or make backgrounds using this. It's so different from PTC. I'm not very experienced with programming, (in fact, someone else coded most of the game for me) so I don't know if some commands have been replaced or just plain removed.

There really isn't any simple way to do that. Most of the commands work just as you would expect on SmileBASIC but there are a few that have been changed or removed. The best thing to do would be to learn SmileBASIC. It's really not hard to learn if you already know how to use PTC.

Since PNLSTR is removed, how do you print text on the touch screen?

XSCREEN 2
PRINT "this text is on the top screen"
DISPLAY 1
PRINT "this text is on the bottom screen
DISPLAY is used to change the write screen for everything (sprites, BGs, text, etc.)

Since PNLSTR is removed, how do you print text on the touch screen?
DISPLAY 0
?"Text on the top screen."
DISPLAY 1
?"Text on the bottom screen"
Pretty much the bottom screen works the same as the top. So you would change colors with COLOR and use LOCATE on the bottom screen as you would on the top.