Omnimaga

Calculator Community => TI Calculators => Lua => Topic started by: ccooldean on August 18, 2015, 11:15:51 am

Title: I'm new to Lua (and to this forum) and need help!
Post by: ccooldean 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:
(http://i.imgur.com/YXl8eEU.png)

Code:
(http://i.imgur.com/mNk607h.png)

And here's a list of what I need to learn how to do:
If I get these questions answered I'll (eventually) release the engine!

Thanks!
Title: Re: I'm new to Lua (and to this forum) and need help!
Post by: Adriweb 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 (http://compasstech.com.au/TNS_Authoring/Scripting/lua_tutorials.html).
The docs have been also extended/exemplified on Inspired-Lua.org's wiki (https://wiki.inspired-lua.org).
There are also some interesting tricks there (https://inspired-lua.org/index.php/category/tutorials/tips-and-tricks/).

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 (https://github.com/adriweb/EEPro-for-Nspire) also uses it (a slightly modified version, IIRC)
Title: Re: I'm new to Lua (and to this forum) and need help!
Post by: ccooldean on August 18, 2015, 12:55:16 pm
EDIT: Nvm. This reply is irrelevant. I figured it out. Thanks, though!