Author Topic: break  (Read 6497 times)

0 Members and 1 Guest are viewing this topic.

Offline Loaf

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 6
  • Rating: +0/-0
    • View Profile
Re: break
« Reply #15 on: August 22, 2013, 06:23:34 pm »
Go on and make us some good programs! ;)

I've already made a few.
Roids - your standard space shooter. However, very rudimentary and slow. Also the enemies shoot back :D
Snake - its bloody snake, what do you expect :/
TIBlocky - a port of minecraft existing in two dimensions :D With flowing water as well. Only a few types of blocks. (heavily under development)

I just needed to know if there was a method for return, because the way I was doing it before was bothering me.

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: break
« Reply #16 on: August 23, 2013, 02:56:52 am »
Another thing you can do is change your For loop into a While one and put two conditions for it to end, the first one being about the For-loop-variable and the second one being about your flag.
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

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: break
« Reply #17 on: August 31, 2013, 05:19:03 pm »
By the way, Goto is perfectly fine in Axe (as opposed to TI-BASIC and just about every coding convention for any other language), so feel free to use them. The only exception is in For(#) loops where they're disallowed, as Runer mentioned.