プレイ日記
I keep trying to put it so if you press a it says you win & it shows a sprite but its not working it says syntax error (:3) So im guessing thats line 3 thats messed up but still how do I do it
0そうだね
プレイ済み
返信[1]
親投稿
L. Lohadaa
Um, baby steps. Let's get the basic down first. IF BUTTON(2)==#A THEN PRINT "You Win" means: "if the button A is momentarily pressed without repeating, print You Win". Don't change it to jibberish like 62. And we need to loop it (@LOOP... GOTO @LOOP) or SB will just end program.
0そうだね
未プレイ
返信[2]
親投稿
ok
0そうだね
プレイ済み
返信[3]
親投稿
L. Lohadaa
In the IF...THEN statement, you can "chain" multiple commands with a colon(:), so you can do your pretty COLOR and other stuff. You can't offset a sprite (SPOFS) without first SETTING the sprite (SPSET). It's like you can't eat dinner or pass plates around without setting your table. In my screenshot, I've set it up so whenever you press A the sprite will move diagonally down a little.
0そうだね
未プレイ
返信[4]
親投稿
this is what I get I tried a bunch of times & keep getting this
0そうだね
プレイ済み
返信[5]
親投稿
L. Lohadaa
Show me your EDIT mode. You ARE typing the codes in EDIT mode and not this DIRECT mode, right?
0そうだね
未プレイ
返信[6]
親投稿
here
0そうだね
プレイ済み
返信[7]
親投稿
L. Lohadaa
Where'd that INPUT at the end of line 3 come from? :/ Delete that. (I typed INC Y though doesn't matter much)
0そうだね
未プレイ
返信[8]
親投稿
thx
0そうだね
プレイ済み
返信[9]
親投稿
how do you add backround color
0そうだね
プレイ済み
返信[10]
親投稿
I'd like it where it shows a menu it says the derp game Big letters & says Press A & it removes that & says You win! Man I wish the remaining post gets off
0そうだね
プレイ済み
返信[11]
親投稿
L. Lohadaa
Huh? You just did right? The darkred background color. COLOR A,B A and B are both numbers from 0-15, A for foreground, B for background. (example: COLOR 3,8) You can also use labels starting with #T instead, such as COLOR #TYELLOW,#TRED Also, for the line SPOFS 0,150+X,100+Y You can play around with the numbers (don't change the 0), such as SPOFS 0,170-X*2,193+Y*3 Go crazy!
0そうだね
未プレイ
返信[12]
親投稿
L. Lohadaa
There are many things I wish to teach but I have so little time. Play around with LOCATE too. LOCATE 3,10:COLOR 3,8:PRINT "DERP GAME"
0そうだね
未プレイ