Results 1 to 6 of 6

Thread: talkin

                  
   
  1. #1
    PSP User dtothabreezy's Avatar
    Join Date
    Apr 2006
    Location
    the netherer realm
    Posts
    308
    Rep Power
    71

    Default talkin

    this is mt first attempt at an example for everybody to use in there lua if u use it plz include me in credits have fun

  2. #2
    GP2X Coder/Moderator
    Join Date
    Jan 2006
    Posts
    1,678
    Rep Power
    87

    Default

    Major problems with the code:
    - It jumps from line 1 to line 3 very quickly as you don't define the difference from a key press and release.
    - Inefficent. If you had a dialogue that was a hundred lines long, with this structure you have to create a variable and if statement for every line.

  3. #3
    DCEmu Coder dalejrrocks's Avatar
    Join Date
    Feb 2006
    Location
    Alabama
    Age
    34
    Posts
    240
    Rep Power
    71

    Default

    what is it?

  4. #4
    GP2X Coder/Moderator
    Join Date
    Jan 2006
    Posts
    1,678
    Rep Power
    87

    Default

    It's a text conversation done in lua.
    Attached is a skeleton code without comments.

    Forseen problems:
    Large lines of text, how would you wrap it round the screen?
    Scripting the dialogue engine to support a different number of characters.

  5. #5
    DCEmu Coder dalejrrocks's Avatar
    Join Date
    Feb 2006
    Location
    Alabama
    Age
    34
    Posts
    240
    Rep Power
    71

    Default

    look at some source like pspm or that court thing lua game for your forseen problems. they have awesome text engines.

  6. #6
    PSP User dtothabreezy's Avatar
    Join Date
    Apr 2006
    Location
    the netherer realm
    Posts
    308
    Rep Power
    71

    Default umm

    made that in like 5 mins dont know how to define
    a key press and release so i put it on a timer may be i dint include that i was just makin somethin quick to take my mind off my project i might work more on that tonight if i got time and its meant to be really easy becuz all you would have to do is rename line1 or 2 or 3 so you wouldnt have to redo it over and over ill make beter one lata if i got time

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •