line breaks does not work. help please.

Previous topic - Next topic

Jonás Perusquía

Hi there :D!

i got some trouble while "rewritting my game's menu code, because it was a mess!!! :S

now instead of several PRINTs, i would like to add line breaks with "\n" but it simply shows a blue square :(

here is a screenshot:


Can anyone help me please? :) thank you in advance
<HTML><BASIC><EC>
Be free and do good things

kanonet

As far as I know this simply does not work. For every new line you need a new call for PRINT.
Lenovo Thinkpad T430u: Intel i5-3317U, 8GB DDR3, NVidia GeForce 620M, Micron RealSSD C400 @Win7 x64

spicypixel

#2
You could always write a function and use MID$ to check for "\n" or use SPLITSTR which might be nicer. <--- Just found SPLITSTR myself :)
http://www.spicypixel.net | http://www.facebook.com/SpicyPixel.NET

Comps Owned - ZX.81, ZX.48K, ZX.128K+2, Vic20, C64, Atari-ST, A500.600.1200, PC, Apple Mini-Mac.

Jonás Perusquía

you mean using SPLITSTR when border of screen/box is reached to write a new line? or Split a PRINT command?
Is the last one possible? xD
<HTML><BASIC><EC>
Be free and do good things

MrTAToad

You would use SPLITSTR and then multiple calls with PRINT

Jonás Perusquía

<HTML><BASIC><EC>
Be free and do good things