Text Event Example

Previous topic - Next topic

kamakazieturtle

Very basic example I had laying around, thought I'd share so someone could get some use out of it. I made an additional source for my game and had actual dialog with scenes for reference points written out. Do whatever you want with it.

Code (glbasic) Select

textevent("This is my example","of a text event. I","made it for a 2d","rpg, use/modify as","you wish, no credit","required. :)")

FUNCTION textevent: line1$,line2$,line3$,line4$,line5$,line6$
DRAWRECT 10,10,160,95,RGB(0,0,150)
DRAWLINE 10,9,169,9,RGB(0,0,255)
DRAWLINE 10,105,169,105,RGB(0,0,255)
DRAWLINE 9,10,9,104,RGB(0,0,255)
DRAWLINE 170,10,170,104,RGB(0,0,255)
IF line1$
PRINT line1$,15,15
ENDIF
IF line2$
PRINT line2$,15,30
ENDIF
IF line3$
PRINT line3$,15,45
ENDIF
IF line4$
PRINT line4$,15,60
ENDIF
IF line5$
PRINT line5$,15,75
ENDIF
IF line6$
PRINT line6$,15,90
ENDIF
SHOWSCREEN
KEYWAIT
ENDFUNCTION

Hemlos

#1
Pretty cool idea, a one liner....simple..the way i like it.

Heres something i use, nice and simple to use and place.
Itll do multiple lists of information anywhere, nice and neatly.
Its also font size sensitive, you can use any size.



[attachment deleted by admin]
Bing ChatGpt is pretty smart :O