|
Post by alexmega on Apr 17, 2018 8:32:40 GMT -5
Good Morning. Oh, could you tell me how to enter text? because according to the attached BIN and where I want to insert. but I did not want to print because of the cls that destroyed the image. I wanted to drawtile. I would like a very simple way. basic.bin (19.43 KB)
|
|
|
Post by tiberiyltim on Apr 17, 2018 10:15:43 GMT -5
Edit font in TileEditor or use SetGfxPlane Scroll_A.
|
|
|
Post by alexmega on Apr 17, 2018 10:51:43 GMT -5
reload text read a for i=0 to 40 read a drawtile a,i+1,10 next text: data "The City that had been plagued with crime and violence" data "teste"
|
|
|
Post by alexmega on Apr 17, 2018 10:52:34 GMT -5
i I was trying to use that. and what's on the rom.
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Apr 17, 2018 11:32:07 GMT -5
Reload Text Read b$ Print b$
That should work, or some variant of that. I’m not on a machine that I can test it out on, but I believe that’ll work.
|
|
|
Post by alexmega on Apr 17, 2018 11:45:46 GMT -5
OR SOMETHING LIKE TO WRITE WITHOUT USING PRINT
|
|
|
Post by alexmega on Apr 17, 2018 11:47:40 GMT -5
I wanted it to appear in lines like this one.
data "The City that had been plagued with crime and violence" data " Teste"
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Apr 18, 2018 8:16:04 GMT -5
Without print you’ll need to parse the string, grab the ascii character, and use a drawtile command:
Reload MyText Read txt$ For a = 1 to len(txt$) Drawtile asc(mid$(txt$,a,1)),1,a Next
Also, TALKING IN ALL CAPS IS RUDE. Next time I’ll ignore comments and requests like that.
Unsure why you want to use this method - it’s much slower than print.
|
|
|
Post by alexmega on Apr 18, 2018 8:36:22 GMT -5
Good morning thank you. The box high or shaved I had written, anything I'm sorry. The reason is that I find it very interesting to write in tile, because the CLS command destroys the graphics and I can use drantile 1350 for example to clean the texts. this was one that I managed to do, but I can not pull the y-axis, make more than one line of text by the same drawtile basic.bin (12.87 KB)
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Apr 18, 2018 8:53:06 GMT -5
CLS affects the text plane, so by default that is plane A.
If you want to use backgrounds and CLS without them interfering, draw to plane b instead:
SetGfxPlane SCROLL_B DrawTile 1,20,20
Print “now you see text” Sleep 50 CLS
‘ no more text but the graphic remains
Of course, this has limited use. It all depends on what your needs are.
|
|
|
Post by alexmega on Apr 18, 2018 9:00:45 GMT -5
thank you. but I'm using all the plans. I'm going to find a way, I'm going to study your code and then put a modification. I will try for drawtiles
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Apr 18, 2018 9:49:31 GMT -5
Yeah, if you’re using both planes, you’ll really just need to find a way to delete the letters/text.
What I usually do is just print a bunch of spaces, for example:
Locate 1,1: print “this is some text” Sleep 60 Locate 1,1: print “ “
|
|
|
Post by alexmega on Apr 18, 2018 10:01:13 GMT -5
very coll.excellent
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Apr 18, 2018 11:58:39 GMT -5
Remember, you can also change the text plane too (they are just tiles, after all):
SetTextPlane Scroll_B
|
|
|
Post by wraith on Apr 20, 2018 19:36:58 GMT -5
|
|