Author Topic: I'm new to Lua (and to this forum) and need help!  (Read 1941 times)

0 Members and 1 Guest are viewing this topic.

Offline ccooldean

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 7
  • Rating: +0/-0
  • ccooldean
    • View Profile
I'm new to Lua (and to this forum) and need help!
« on: August 18, 2015, 11:15:51 am »
Lately I've been trying to learn how to use my TI-Nspire to make stuff in Lua, and let me say, the official tutorials and documentation have been..... less than useful.
I'm trying to make Phoenix Wright (or at least an engine) in Lua. But I have a few questions, and since I'm new, I figured I'll give it a shot here.
Here is what I have so far:

Actual screenshot:


Code:


And here's a list of what I need to learn how to do:
  • Animations. The characters are completely still.
  • Making the textboxes scroll text. I really don't need to learn this right away, but it's in the list.
  • How to click on things and have an action happen. i.e. Text appear, character swap, etc.
  • How to make characters fade in and out.
If I get these questions answered I'll (eventually) release the engine!

Thanks!
I make Phoenix Engine!
...
yup.

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: I'm new to Lua (and to this forum) and need help!
« Reply #1 on: August 18, 2015, 12:06:33 pm »
In addition to the official API PDF, most of the things you need to know are explained in Steve Arnold (Compasstech) 's Nspire Lua tutorials.
The docs have been also extended/exemplified on Inspired-Lua.org's wiki.
There are also some interesting tricks there.

Regarding animations especially, you'll have to look at timer.start and update coordinates in on.timer.
There's a lib here that could be useful: https://github.com/Levak/Anim-It

Check out those documents here, some of them uses that lib: https://tiplanet.org/forum/archives_voir.php?id=284048
FormulaPro also uses it (a slightly modified version, IIRC)
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline ccooldean

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 7
  • Rating: +0/-0
  • ccooldean
    • View Profile
Re: I'm new to Lua (and to this forum) and need help!
« Reply #2 on: August 18, 2015, 12:55:16 pm »
EDIT: Nvm. This reply is irrelevant. I figured it out. Thanks, though!
« Last Edit: August 18, 2015, 03:51:41 pm by ccooldean »
I make Phoenix Engine!
...
yup.