Author Topic: Ti 84+cse prgming questions  (Read 11231 times)

0 Members and 2 Guests are viewing this topic.

Offline dreamdragon

  • LV3 Member (Next: 100)
  • ***
  • Posts: 72
  • Rating: +6/-19
  • Dragon born and Dragon raised.
    • View Profile
Re: Ti 84+cse prgming questions
« Reply #15 on: January 30, 2014, 08:03:16 pm »
In time, you'll learn that the Goto command is counter-indicated in almost all of the programming languages existing, because it breaks the flow of your program. In TI-BASIC thought there is a lack of essential alternatives (like subroutines), so you can't really avoid it.

However, your case is one in which you can use a more efficient structure, which is the While loop. It will make your code a bit faster and you can program an exit condition if you need to.

I'm going to give you an exit condition to try out. How would you change your code to exit the strobe by clicking Enter?

To do this you'll want to know how the While condition works (why While 1 loops infinitely) and how to read keystrokes. After that it should be fairly easy to pull it off.

Good luck ;D

gah....
what a callenge u have left me indeed!

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Ti 84+cse prgming questions
« Reply #16 on: January 30, 2014, 11:27:52 pm »
Regarding strobe lights, just be careful with epilleptic people.

Offline The_King

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 247
  • Rating: +6/-2
  • Ⓣⓗⓔ Ⓖⓐⓜⓔ ⓍⒹ
    • View Profile
Re: Ti 84+cse prgming questions
« Reply #17 on: January 30, 2014, 11:42:57 pm »
Regarding strobe lights, just be careful with epilleptic people.

just a question to ask if u r epileptic perhaps ???

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Re: Ti 84+cse prgming questions
« Reply #18 on: January 30, 2014, 11:44:50 pm »
Nope. Just making sure he is careful since we never know who could be. :P

Offline The_King

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 247
  • Rating: +6/-2
  • Ⓣⓗⓔ Ⓖⓐⓜⓔ ⓍⒹ
    • View Profile
Re: Ti 84+cse prgming questions
« Reply #19 on: January 30, 2014, 11:45:52 pm »
i might be
which means he better be
« Last Edit: January 30, 2014, 11:46:09 pm by hking1 »

Offline dreamdragon

  • LV3 Member (Next: 100)
  • ***
  • Posts: 72
  • Rating: +6/-19
  • Dragon born and Dragon raised.
    • View Profile
Re: Ti 84+cse prgming questions
« Reply #20 on: February 01, 2014, 01:12:27 pm »
i might be
which means he better be

im not seizer prone, sadly.  :evillaugh:

Offline dreamdragon

  • LV3 Member (Next: 100)
  • ***
  • Posts: 72
  • Rating: +6/-19
  • Dragon born and Dragon raised.
    • View Profile
Re: Ti 84+cse prgming questions
« Reply #21 on: February 01, 2014, 09:48:00 pm »
heres the prgm

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Ti 84+cse prgming questions
« Reply #22 on: February 02, 2014, 11:40:50 am »
Ok thanks. I actually copied the code easily by hand, though. :P By the way, although I don't necessarily see the use of running this non-stop alone or for prolonged periods of time, I think this can be useful in game animations, for example if someone makes a Zelda or Final Fantasy game and certain magic spells are used. The only annoyance is if the player exits with ON and the calc remains inverted, but the game author just have to warn users to not exit during animations. A lot of NES and SNES games used such animation.