プレイ日記
κιъъιε kibbledude
How do i make it where whenever i press A it will load down to GRP0:7? im trying to make it where u press A then the health bar that i drew with the GRP0 goes down one to another GRP0?
2そうだね
プレイ済み
返信[1]
親投稿
PChicken NerdChicken
First of all, thank you for using WHILE/WEND instead of a label loop. G=7 WHILE G >= 0 LOAD "GRP0:"+STR$(G),0 IF BUTTON(2) AND #A THEN DEC G WEND
0そうだね
プレイ済み
返信[2]
親投稿
V.G.Lover messi-416
noob question:what do WHILE and WEND even do?
1そうだね
プレイ済み
返信[3]
親投稿
κιъъιε kibbledude
it still doesn't work!
0そうだね
プレイ済み
返信[4]
親投稿
PChicken NerdChicken
you did something wrong, because G variable can't ever get to 77.
0そうだね
プレイ済み
返信[5]
親投稿
PChicken NerdChicken
WHILE is a loop start marker, WEND is a loop end marker. Use: WHILE <condition to let the loop run while true> code WEND Also, take note of the REPEAT/UNTIL loop. REPEAT is a loop start marker, UNTIL is a loop end marker. Use: REPEAT code UNTIL <condition to stop loop> Finally, use BREAK to break out of a loop. Please note that it will not automatically break out of all nested loops.
2そうだね
プレイ済み
返信[6]
親投稿
V.G.Lover messi-416
oh ok yeah,im still learning about programming and i didnt know what they were
0そうだね
プレイ済み
返信[7]
親投稿
κιъъιε kibbledude
it says that thers a syntax error on the line UNTIL is on
0そうだね
プレイ済み
返信[8]
親投稿
PChicken NerdChicken
kibble, you're not understanding it right. conditions are like G > 0 or G == -1. also, don't include the brackets.
0そうだね
プレイ済み
返信[9]
親投稿
κιъъιε kibbledude
Noob question: What are brackets?
0そうだね
プレイ済み
返信[10]
親投稿
κιъъιε kibbledude
im so sorry
0そうだね
プレイ済み
返信[11]
親投稿
PChicken NerdChicken
< > { } [ ] i call any of these brackets ( ) these are parentheses
0そうだね
プレイ済み
返信[12]
親投稿
PChicken NerdChicken
but by brackets i meant the surrounding ones like < > not by itself like <
0そうだね
プレイ済み