Author Topic: Smooth Key Input  (Read 3930 times)

0 Members and 1 Guest are viewing this topic.

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Smooth Key Input
« 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?

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: Smooth Key Input
« Reply #1 on: June 14, 2011, 05:37:04 pm »
Unfortunately no. The TI-Nspire Lua API is limited, and not game-oriented :(
Ndless.me with the finest TI-Nspire programs

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Smooth Key Input
« Reply #2 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!

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Smooth Key Input
« Reply #3 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 <_<
« Last Edit: June 14, 2011, 08:27:41 pm by Deep Thought »