Author Topic: [Axe]Title Screen  (Read 13982 times)

0 Members and 1 Guest are viewing this topic.

Offline Aichi

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 290
  • Rating: +76/-3
    • View Profile
    • Devrays
Re: [Axe]Title Screen
« Reply #30 on: November 07, 2010, 01:54:01 pm »
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
:Repeat getKey->Z
:If Z = 26
:Disp "BY DAVID
End
:If Z=18
:Disp "Help"
sub(PAU)
:End
:If Z=35
:Disp "Quit Program Code
sub(PAU)
:End
:If Z=34
// CODE FOR THE GAME
sub(PAU)
:End

Lbl PAU
Repeat getkey->A
End
Return
« Last Edit: November 07, 2010, 01:54:18 pm by Aichi »

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: [Axe]Title Screen
« Reply #31 on: November 07, 2010, 01:54:10 pm »
Code: [Select]
:.(GAMENAME)
:Lbl 1
: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
:Repeat getKey->Z
:End
:If Z = 26
:ClrHome
:Disp "BY DAVID
:Repeat getKey
:End
:Goto 1
:End
:If Z=18
:ClrHome
:Disp "Help"
:Repeat getKey
:End
:Goto 1
:End
:If Z=35
:ClrHome
:Disp "Quit Program Code
:Repeat getKey
:End
:Goto 1
:End
:If Z=34
// CODE FOR THE GAME
:End

BTW, you'd better use Output( instead of Disp.
If you use Disp multiple times in one part of code, like
Code: [Select]
...
:Disp "1"
:Disp "2"
then all text will be displayed in one line so you get  "    1     2"

But, thats all yours. with this code, it would work

EDIT: ninja'd
:D

Aichi, your use of a sub is very good, but you dont have to use
Code: [Select]
0->A
Repeat getKey->A
End
just use
Code: [Select]
Repeat getKey
End
« Last Edit: November 07, 2010, 01:58:51 pm by aeTIos »
I'm not a nerd but I pretend:

Offline Aichi

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 290
  • Rating: +76/-3
    • View Profile
    • Devrays
Re: [Axe]Title Screen
« Reply #32 on: November 07, 2010, 02:02:12 pm »
as it was said here already two times.
I don't see where it was said ???
There are some mentions on page 1, for example from you.
Also, sorry if this part of my post was impolite. <.<

Edit @ aeTIos:
Hm, I think it has to be Repeat->Variable, else the previous keypress would not be ignored.

Edit²:
I mean Repeat getkey->Variable of course. :D
« Last Edit: November 07, 2010, 02:06:12 pm by Aichi »

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: [Axe]Title Screen
« Reply #33 on: November 07, 2010, 02:08:00 pm »
BTW, how do I make the sub? Using Alpha Low.Case?

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: [Axe]Title Screen
« Reply #34 on: November 07, 2010, 02:08:35 pm »
you create a sub by [2nd][0][T][up][up][enter]
the 3 letters is the label you want to be "subbed" ;)
in games, you can use a sub when you use a specific routine very much
« Last Edit: November 07, 2010, 02:12:01 pm by aeTIos »
I'm not a nerd but I pretend:

Offline Aichi

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 290
  • Rating: +76/-3
    • View Profile
    • Devrays
Re: [Axe]Title Screen
« Reply #35 on: November 07, 2010, 02:09:03 pm »
[2ND] [ 0]  [T] [Up] [Up] - Token

Edit @ aeTIos:
If someone go to the help menu for example, by pressing 1. Repeat getkey (This one in the help menu) will be true via the key 1, which is still pressed.
« Last Edit: November 07, 2010, 02:14:48 pm by Aichi »

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: [Axe]Title Screen
« Reply #36 on: November 07, 2010, 02:15:55 pm »
Code: [Select]
:.(GAMENAME)
:Lbl 1
: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
:Repeat getKey->Z
:End
:If Z = 26
:ClrHome
:Disp "BY DAVID
:Repeat getKey
:End
:Goto 1
:End
:If Z=18
:ClrHome
:Disp "Help"
:Repeat getKey
:End
:Goto 1
:End
:If Z=35
:ClrHome
:Disp "Quit Program Code
:Repeat getKey
:End
:Goto 1
:End
:If Z=34
// CODE FOR THE GAME
:End

Gives me no errors, but the menu opens white and then when I press any key, the screen appears for a mili second and disappears again :(

Offline Aichi

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 290
  • Rating: +76/-3
    • View Profile
    • Devrays
Re: [Axe]Title Screen
« Reply #37 on: November 07, 2010, 02:18:26 pm »
Code: [Select]
:.(GAMENAME)
:Lbl 1
: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
:Repeat getKey->Z
:End
:If Z = 26
:ClrHome
:Disp "BY DAVID
:Repeat getKey
:End
:Goto 1
:End
:If Z=18
:ClrHome
:Disp "Help"
:Repeat getKey
:End
:Goto 1
:End
:If Z=35
:ClrHome
:Disp "Quit Program Code
:Repeat getKey
:End
:Goto 1
:End
:If Z=34
// CODE FOR THE GAME
:End

Gives me no errors, but the menu opens white and then when I press any key, the screen appears for a mili second and disappears again :(

D:
Put the End (this one after the Repeat start) into the last line.
Edit: After the repeat getkey->z
« Last Edit: November 07, 2010, 02:19:11 pm by Aichi »

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: [Axe]Title Screen
« Reply #38 on: November 07, 2010, 02:24:06 pm »
Code: [Select]
:.(GAMENAME)
:Lbl 1
: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
:Repeat getKey->Z
:End
:If Z = 26
:ClrHome
:Disp "BY DAVID
:Repeat getKey
:End
:Goto 1
:End
:If Z=18
:ClrHome
:Disp "Help"
:Repeat getKey
:End
:Goto 1
:End
:If Z=35
:ClrHome
:Disp "Quit Program Code
:Repeat getKey
:End
:Goto 1
:End
:If Z=34
// CODE FOR THE GAME
:End

Gives me no errors, but the menu opens white and then when I press any key, the screen appears for a mili second and disappears again :(

D:
Put the End (this one after the Repeat start) into the last line.
Edit: After the repeat getkey->z

There is an end after the getKey->Z and I did put it, though :S

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: [Axe]Title Screen
« Reply #39 on: November 07, 2010, 02:26:51 pm »
Hmmm thats strange, is this your full code or do you have more that is part of a larger program?

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: [Axe]Title Screen
« Reply #40 on: November 07, 2010, 02:28:45 pm »
Hmmm thats strange, is this your full code or do you have more that is part of a larger program?

Yes, I have, I'll start a new thread about it with the whole code

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: [Axe]Title Screen
« Reply #41 on: November 07, 2010, 02:29:20 pm »
You have a Fix 5 somewhere in there don't you?

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: [Axe]Title Screen
« Reply #42 on: November 07, 2010, 02:35:09 pm »
as it was said here already two times.
I don't see where it was said ???
There are some mentions on page 1, for example from you.
Also, sorry if this part of my post was impolite. <.<

Edit @ aeTIos:
Hm, I think it has to be Repeat->Variable, else the previous keypress would not be ignored.

Edit²:
I mean Repeat getkey->Variable of course. :D
Ah ok because the two posts in question seemed to talk about Repeat but for a different matter. X.x
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: [Axe]Title Screen
« Reply #43 on: November 07, 2010, 02:36:43 pm »
You have a Fix 5 somewhere in there don't you?

Yes I do, I found a way to fix it.

Omg, are you a witch or something?

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: [Axe]Title Screen
« Reply #44 on: November 07, 2010, 02:38:27 pm »
Haha nope but i saw that the only way that you could possible not be seeing  something with that code is if those text commands were drawing to the buffer instead of the screen, and the only way that can happen if if you had a Fix 5 somewhere in the code :)

Its not witchcraft is merely the power of deduction! ;D Glad you got it to work too :)