Omnimaga

Calculator Community => TI Calculators => Lua => Topic started by: Munchor on June 14, 2011, 04:50:08 pm

Title: Smooth Key Input
Post by: Munchor on June 14, 2011, 04:50:08 pm
I was wondering if it's possible to achieve this in Lua, as it's a high level language I'm not sure if we can.

In a Mario game for Nintendo Consoles, we press <RIGHT> and the sprite immediately goes right. However, in the Nspire if we press right the image will move once, pause for a bit and then start moving (and it won't pause again until we release key).

So, can it be done?
Title: Re: Smooth Key Input
Post by: ExtendeD on June 14, 2011, 05:37:04 pm
Unfortunately no. The TI-Nspire Lua API is limited, and not game-oriented :(
Title: Re: Smooth Key Input
Post by: Munchor on June 14, 2011, 05:39:01 pm
Unfortunately no. The TI-Nspire Lua API is limited, and not game-oriented :(

That's too bad, thanks for the information. Go Ndless and C and ARM!
Title: Re: Smooth Key Input
Post by: Deep Toaster on June 14, 2011, 08:27:15 pm
I guess it's sort of like BASIC -- there's only one way to do anything, and it's the way that TI implemented it.

EDIT: At least it's an improvement on BASIC, where there was sometimes less than one way of doing something <_<