Omnimaga

Calculator Community => TI Calculators => Axe => Topic started by: PC5LeGeND on June 06, 2012, 10:46:38 am

Title: text thingy for RPG
Post by: PC5LeGeND on June 06, 2012, 10:46:38 am
i want to make an RPG with some text at the bottom of the screen like zelda anyone know how to do this or got a good tutorial ??
Title: Re: text thingy for RPG
Post by: stevon8ter on June 06, 2012, 10:56:30 am
I think you could maybe do it like in basic? Just draw line a couple of pixels above where the text has to be, and then use the text( -command (or whatever it is in axe) to show the text on the correct possition
Title: Re: text thingy for RPG
Post by: hellninjas on June 06, 2012, 11:02:05 am
Or you could try the Horiz command? It cuts the screen in half horizontally where the top is the graph screen and the bottom is the home screen, which could easily be used for text :D
Title: Re: text thingy for RPG
Post by: MGOS on June 06, 2012, 11:28:31 am
Or you could try the Horiz command? It cuts the screen in half horizontally where the top is the graph screen and the bottom is the home screen, which could easily be used for text :D

Since this is on an axe board, I think he wants to do it Axe - and there is no Horiz command.
Title: Re: text thingy for RPG
Post by: hellninjas on June 06, 2012, 11:29:17 am
Oh I thought that was axe x.x
Title: Re: text thingy for RPG
Post by: MGOS on June 06, 2012, 11:32:16 am
Oh I thought that was axe x.x
No, It only works in TI-Basic, but with what you can do in axe I can't see any use of the Horiz command in axe.
Title: Re: text thingy for RPG
Post by: squidgetx on June 06, 2012, 03:08:16 pm
Kinda like this?
(http://www.omnimaga.org/index.php?action=dlattach;topic=5014.0;attach=4343;image)

A lot of this kind of thing you need to code from scratch, there's no command or quick way to do it. In this screenshot I have an engine running that basically loops through the data one character at a time, increasing the text cursor by 4px every letter. When the text gets to the end of the line the line counter is increased and the horizontal counter is reset. Then when it reaches the end of that line it waits for a keypress before redrawing the rectangle and resetting both counters.
Title: Re: text thingy for RPG
Post by: PC5LeGeND on June 06, 2012, 03:48:43 pm
do you have the script from that ???
Title: Re: text thingy for RPG
Post by: squidgetx on June 07, 2012, 10:20:45 pm
More or less something like this: (unoptimized for clarity)
Code: [Select]
"Text"->Pointer
NPC(Pointer)
...
Lbl NPC
48->B
2->A
Rect(0,46,96,18)
RectI(1,47,94,16)
For(E,0,length(r1)

Text(A,B,{r1+E}>Char
A+4->A
If A>90
0->A
!If B-54
Repeat getKey
End
Rect(same numbers)
48->B
Else
54->B
End
End
DispGraph
End