プレイ日記
King 5kittens645
Ok, can anyone tell me how i would make a menu? Basically i want to know how i would make if i pressed up it would show an arrow next to the word, and if i pressed down it would get rid of the top arrow and show one below. Also, how would i make it where if were to press A while on the selection it would clear the screen and show something else.
2そうだね
プレイ済み
返信[1]
親投稿
King 5kittens645
And i'm sorry if i sound like a noob, but i am a noob at coding right now. So if someone would tell me then it would help me out a ton.
0そうだね
プレイ済み
返信[2]
親投稿
*J.P.* DEV NEWPICY3
hey! good timing! i have recently been learning about menu making ok so might be a bit confusing, but.. well.. ill go grab a key for a demo on it. brb
0そうだね
未プレイ
返信[3]
親投稿
*J.P.* DEV NEWPICY3
sorry took so long, this is how it works, test around with it, you can do like if cy==4 && button() and #a then goto @label or something like. its easy to change 4kk83jd6
0そうだね
未プレイ
返信[4]
親投稿
King 5kittens645
ok, thanks. Hopefully that will help me.
0そうだね
プレイ済み
返信[5]
親投稿
*J.P.* DEV NEWPICY3
ok i took out a lot for mine, so if you want to see my code i can do that too.
0そうだね
未プレイ
返信[6]
親投稿
King 5kittens645
I think i'm doing something wrong, because the screen just flashes for a second and it ends. X[
0そうだね
プレイ済み
返信[7]
親投稿
King 5kittens645
i'll just see if anyone else can help...
0そうだね
プレイ済み
返信[8]
親投稿
OlOOlOOl pi_r_round
Have a look at "menu framework". The download key is in the screenshot.
0そうだね
プレイ済み
返信[9]
親投稿
*J.P.*[P]£ aj2003aj
its printed it then ended because there nothing else to do, like if you have to do homework, after youve done it you dont keep doing it, you stop. it needs a loop or something.
0そうだね
プレイ済み
返信[10]
親投稿
King 5kittens645
@OlOOlOOl, So should i put some of the code from the program in here? Also, this is way to confusing for me, so i think i'm just not going to use a menu in my game. Thanks for the help anyway, and sorry for wasting your time...
0そうだね
プレイ済み
返信[11]
親投稿
komodo † 406mario
Here do this @loop Locate 0,0:?"what do you want to do?" Locate 1,2:?":go outside":locate 10,2:":stay here" @buttonpress B=button(0) Locate 0,2:?"->"'that is a arrow If b and #A then goto@go If band #right then locate 0,2:?" ":goto@button2
0そうだね
プレイ済み
返信[12]
親投稿
komodo † 406mario
Goto@buttonpress @button2 B=button (0) Locate 9,2:"->" If b and #a then goto@stay If b and #left then locate 9,2:?" ":Goto@butonpress Goto @button2
0そうだね
プレイ済み
返信[13]
親投稿
King 5kittens645
I can't try that right now, but thank you for helping. I will test that out when i get a chance.
0そうだね
プレイ済み
返信[14]
親投稿
King 5kittens645
@komodo †, I put the code in, but it just says "undefined label in line 29". Also, the text on the screen goes over the other text (if that makes any sense).
0そうだね
プレイ済み
返信[15]
親投稿
komodo † 406mario
That's because it's not finished you need to decide whats going to happen with each event for example if you clicked stay then @stay'this is a label and inorder to use the goto command you need to have the label to go to that's why you got the error Locate 9,7 :?"you decide bro stay" End Now for they other bug I made a mistake if you switch the 2 numbers in each of the locate functions.
0そうだね
プレイ済み
返信[16]
親投稿
komodo † 406mario
*you decided to stay* stupid spell check.
1そうだね
プレイ済み
返信[17]
親投稿
King 5kittens645
Ah, Well thanks for the help, i'll consider using the menu code. I'll keep it in mind for later. Even though i didn't use the code, i'll put you in the credits for my game.
1そうだね
プレイ済み
返信[18]
親投稿
King 5kittens645
How does it look? I hope you like it!
0そうだね
プレイ済み
返信[19]
親投稿
*J.P.*[P]£ aj2003aj
noice. i have a really bad headache.. its a banging headache.. ow.. i think ive been programming too much.. ill take a break.
0そうだね
プレイ済み
返信[20]
親投稿
King 5kittens645
I think i've spent a few hours programming, and i feel ok-ish. I could probably spend another hour programming. Except i probably shouldn't program until tomorrow. I need rest.
0そうだね
プレイ済み
返信[21]
親投稿
*J.P.*[P]£ aj2003aj
well ive been goin for the past 4 days, school, coding, sleep. ill take a day or 2 sleep while waiting 4 PChicken
0そうだね
プレイ済み
返信[22]
親投稿
King 5kittens645
I've been wanting to code longer, but i'm to tired... I'm trying to work on two things at the same time. I need more time.
0そうだね
プレイ済み
返信[23]
親投稿
*J.P.*[P]£ aj2003aj
same
0そうだね
プレイ済み
返信[24]
親投稿
MSWS coolestkid123
(Put menu options here) WHILE 1 B=BUTTON() LOCATE X,Y ?"←" LOCATE X,OY ?" " OY=Y IF B AND #UP THEN DEC Y IF B AND #DOWN THEN INC Y IF Y!=OY THEN WAIT 10 WEND
0そうだね
プレイ済み