Author Topic: text thingy for RPG  (Read 4118 times)

0 Members and 3 Guests are viewing this topic.

Offline PC5LeGeND

  • LV3 Member (Next: 100)
  • ***
  • Posts: 54
  • Rating: +0/-1
  • TI-84 asm programmer
    • View Profile
text thingy for RPG
« 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 ??
TI-84/TI-83 ASM programmer

TI-84/TI-83 BASIC programmer

Java program





Offline stevon8ter

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 663
  • Rating: +10/-0
    • View Profile
Re: text thingy for RPG
« Reply #1 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
None of my posts are meant offending... I you feel hurt by one of my posts, tell me ... So i can appoligise me and/or explain why i posted it


Hi there, I'm the allmighty (read as: stupid, weak...) STEVON8TER

Offline hellninjas

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 625
  • Rating: +17/-0
    • View Profile
Re: text thingy for RPG
« Reply #2 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

Offline MGOS

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +95/-0
    • View Profile
Re: text thingy for RPG
« Reply #3 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.

Offline hellninjas

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 625
  • Rating: +17/-0
    • View Profile
Re: text thingy for RPG
« Reply #4 on: June 06, 2012, 11:29:17 am »
Oh I thought that was axe x.x

Offline MGOS

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +95/-0
    • View Profile
Re: text thingy for RPG
« Reply #5 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.

Offline squidgetx

  • Food.
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1881
  • Rating: +503/-17
  • rawr.
    • View Profile
Re: text thingy for RPG
« Reply #6 on: June 06, 2012, 03:08:16 pm »
Kinda like this?


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.

Offline PC5LeGeND

  • LV3 Member (Next: 100)
  • ***
  • Posts: 54
  • Rating: +0/-1
  • TI-84 asm programmer
    • View Profile
Re: text thingy for RPG
« Reply #7 on: June 06, 2012, 03:48:43 pm »
do you have the script from that ???
« Last Edit: June 06, 2012, 04:02:08 pm by PC5LeGeND »
TI-84/TI-83 ASM programmer

TI-84/TI-83 BASIC programmer

Java program





Offline squidgetx

  • Food.
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1881
  • Rating: +503/-17
  • rawr.
    • View Profile
Re: text thingy for RPG
« Reply #8 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
« Last Edit: June 07, 2012, 10:21:45 pm by squidgetx »