Archiverse Internet Archive
投稿のみ 投稿と返信
前のページ(最近)
1 2 3 4 5 6 7 8 9 10 11 12 13 14
次のページ(過去)
返信[5]
親投稿
OlOOlOOl pi_r_round
It's a variant of Fortran.
0そうだね
プレイ済み
返信[3]
親投稿
OlOOlOOl pi_r_round
The code in the attached screenshot shows how to detect touches on the touch screen. Help can be accessed by positioning your cursor on a SmileBasic command then tapping the [?] button near the upper right corner of the touch screen.
2そうだね
プレイ済み
返信[10]
親投稿
OlOOlOOl pi_r_round
There are GOTO commands between each IF statement, so only the first IF can be reached.
1そうだね
プレイ済み
返信[4]
親投稿
OlOOlOOl pi_r_round
(sorry, I missed that extra "IF" in your code, first time around)
1そうだね
プレイ済み
返信[3]
親投稿
OlOOlOOl pi_r_round
change "AND IF D=5" to "AND D==5"
1そうだね
プレイ済み
返信[1]
親投稿
OlOOlOOl pi_r_round
Change "IF D=5" to "IF D==5"
0そうだね
プレイ済み
返信[1]
親投稿
OlOOlOOl pi_r_round
Your variable, T, is a number. TIMES$ is a string. Changing T to T$ will make your variable into a string and solve the problem. (You should also do the same to the line below it.)
0そうだね
プレイ済み
返信[7]
親投稿
OlOOlOOl pi_r_round
Think about DATA as defining a read-only file that's build into your program. Use the READ command to read the data. Use RESTORE to point to the beginning of the data that you want to read. @MONSTER_1 DATA "zombie", 45 @MONSTER_2 DATA "skeleton", 64 DIM A$,B ' name & move speed RESTORE @MONSTER_2 READ A$,B
1そうだね
プレイ済み
返信[5]
親投稿
OlOOlOOl pi_r_round
What's the error message you're getting?
0そうだね
プレイ済み
返信[3]
親投稿
OlOOlOOl pi_r_round
doh! I remember what the "FALSE" is for now. Sorry about that.
0そうだね
プレイ済み
返信[1]
親投稿
OlOOlOOl pi_r_round
Try changing the "0" in the statement: "DIM MAP[0]" to the size of the data in the file. Also, why is there a "FALSE" on the end of the "LOAD" function? Hint: if you place your cursor on a keyword, then tap the [?] near the upper right, help for that command will appear. Use the slide button thingy to the left of the screen to navigate in the help.
0そうだね
プレイ済み
返信[3]
親投稿
OlOOlOOl pi_r_round
and here's another one done.
0そうだね
プレイ済み
返信[3]
親投稿
OlOOlOOl pi_r_round
SPOFS can be used to read the sprite's location. Sample code in screenshot.
2そうだね
プレイ済み
返信[5]
親投稿
OlOOlOOl pi_r_round
The Start button (nor the Select button) can't be read in a SmileBasic program. The other buttons' numbers have constants assigned to them. Some examples: #A, #UP, #LEFT. If you use the constants, your code will be more readable.
0そうだね
プレイ済み
返信[2]
親投稿
OlOOlOOl pi_r_round
Solved a second one.
0そうだね
プレイ済み
返信[1]
親投稿
OlOOlOOl pi_r_round
Use the SPANIM command with the "XY" parameter.
0そうだね
プレイ済み
返信[16]
親投稿
OlOOlOOl pi_r_round
Hmm... interesting. So, maybe it's not a bug; it's a feature?
1そうだね
プレイ済み
返信[28]
親投稿
OlOOlOOl pi_r_round
Here's another sample code of the string reference problem that ĦHarry wrote about.
1そうだね
プレイ済み
返信[5]
親投稿
OlOOlOOl pi_r_round
I believe all the array commands like that work only on 1-dimensional arrays.
0そうだね
プレイ済み
返信[1]
親投稿
OlOOlOOl pi_r_round
It's not mine. Here's the key. The menu is in Japanese, but it's fairly easy to figure out the controls.
1そうだね
プレイ済み