Author Topic: [Axe]Title Screen  (Read 15683 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
Re: [Axe]Title Screen
« Reply #15 on: November 07, 2010, 01:19:23 pm »
To use Getkey, for example,

Repeat getkey(15)
End

would cause a loop until you press key #15, which happens to be CLEAR. Getkey=15 also works, but it is not as responsive, although it is more like the TI-OS getkey, so it's easier to navigate menus.

Great help thanks!

I have a BLOCK Error now, what kind of errors could be block erros...

Since 90% is compiled before the error, that means the error is in the end?

Offline Aichi

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 290
  • Rating: +76/-3
    • View Profile
    • Devrays
Re: [Axe]Title Screen
« Reply #16 on: November 07, 2010, 01:23:53 pm »
Probably there are too much Ends in the code.
The number of Ifs/Repeats and the number of Ends should be the same.

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: [Axe]Title Screen
« Reply #17 on: November 07, 2010, 01:26:41 pm »
Probably there are too much Ends in the code.
The number of Ifs/Repeats and the number of Ends should be the same.

Thanks, I'll check that, the Axe Compiler should really tell us the line :S

EDIT: THAT WORKED! Now, I have a Titlte Screen, but it disappears right after, I don't want Pauses to make it stay there. Alternatives?
« Last Edit: November 07, 2010, 01:27:52 pm by ScoutDavid »

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: [Axe]Title Screen
« Reply #18 on: November 07, 2010, 01:27:17 pm »
Yeah I wish it did. Hopefully in the final version he will.

Offline Aichi

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 290
  • Rating: +76/-3
    • View Profile
    • Devrays
Re: [Axe]Title Screen
« Reply #19 on: November 07, 2010, 01:28:25 pm »
@Scoutdavid
Did you tried to press PRGM while Axe output the error?

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: [Axe]Title Screen
« Reply #20 on: November 07, 2010, 01:29:38 pm »
@Scoutdavid
Did you tried to press PRGM while Axe output the error?

No, I didn't. What would that do?

Now, I have a Titlte Screen, but it disappears right after, I don't want Pauses to make it stay there. Alternatives?
« Last Edit: November 07, 2010, 01:30:15 pm by ScoutDavid »

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: [Axe]Title Screen
« Reply #21 on: November 07, 2010, 01:30:22 pm »
it scrolls to the error

Edit: make sure you have... in your code.. in that order


.....
Dispgraph
Cleardraw.
.......
« Last Edit: November 07, 2010, 01:31:20 pm by happybobjr »
School: East Central High School
 
Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Lent out, and never returned
____________________________________________________________

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: [Axe]Title Screen
« Reply #22 on: November 07, 2010, 01:30:30 pm »
that will make you go to the error that is specified
I'm not a nerd but I pretend:

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: [Axe]Title Screen
« Reply #23 on: November 07, 2010, 01:30:56 pm »
that will make you go to the error that is specified

Great, no idea lol, thansk much, now it'll all be easier

Now, I have a Titlte Screen, but it disappears right after, I don't want Pauses to make it stay there. Alternatives?

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: [Axe]Title Screen
« Reply #24 on: November 07, 2010, 01:32:30 pm »
:repeat getKey
:end

does the same thing as pause in basic
I mean, it waits for a key
if you want enter to be pressed, do this:
:repeat getKey(9)
:end
« Last Edit: November 07, 2010, 01:33:41 pm by aeTIos »
I'm not a nerd but I pretend:

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: [Axe]Title Screen
« Reply #25 on: November 07, 2010, 01:43:35 pm »
My code:

Code: [Select]
:ClrHome
:ClrDraw
:Text(0,0,"TITLE
:Text(10,0,"1:Play
:Text(20,0,"2:About
:Text(30,0,"3:Help
:Text(40,0,"4:Quit
:getKey->Z
:If Z = 26
:Disp "BY DAVID
End
:If Z=18
:Disp "Help"
:End
:If Z=35
:Disp "Quit Program Code
:End
:If Z=34
// CODE FOR THE GAME
:End

how to make the title screen show up and I can choose keys from 1 to 4 and then do what the code here tells to do, I'm having some difficulties with the easiest part I guess :S

Offline Aichi

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 290
  • Rating: +76/-3
    • View Profile
    • Devrays
Re: [Axe]Title Screen
« Reply #26 on: November 07, 2010, 01:45:26 pm »
You should put the key test in a loop, as it was said here already two times.
« Last Edit: November 07, 2010, 01:46:11 pm by Aichi »

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: [Axe]Title Screen
« Reply #27 on: November 07, 2010, 01:46:06 pm »
it scrolls to the error

Edit: make sure you have... in your code.. in that order


.....
Dispgraph
Cleardraw.
.......
Oh wait I forgot Axe still had error scrolling. I thought it was removed because it caused crashes and stuff in earlier versions of Axe, especially with archived files.

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: [Axe]Title Screen
« Reply #28 on: November 07, 2010, 01:49:15 pm »
You should put the key test in a loop, as it was said here already two times.

I tried Repeat getKey->Z

and it didn't work :S

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: [Axe]Title Screen
« Reply #29 on: November 07, 2010, 01:52:14 pm »
as it was said here already two times.
I don't see where it was said ???