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そうだね プレイ済み
There are GOTO commands between each IF statement, so only the first IF can be reached.
1そうだね プレイ済み
(sorry, I missed that extra "IF" in your code, first time around)
1そうだね プレイ済み
change "AND IF D=5" to "AND D==5"
1そうだね プレイ済み
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そうだね プレイ済み
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そうだね プレイ済み
What's the error message you're getting?
0そうだね プレイ済み
doh! I remember what the "FALSE" is for now. Sorry about that.
0そうだね プレイ済み
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そうだね プレイ済み
SPOFS can be used to read the sprite's location. Sample code in screenshot.
2そうだね プレイ済み
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そうだね プレイ済み
Use the SPANIM command with the "XY" parameter.
0そうだね プレイ済み
Hmm... interesting. So, maybe it's not a bug; it's a feature?
1そうだね プレイ済み
Here's another sample code of the string reference problem that ĦHarry wrote about.
1そうだね プレイ済み
I believe all the array commands like that work only on 1-dimensional arrays.
0そうだね プレイ済み
It's not mine. Here's the key. The menu is in Japanese, but it's fairly easy to figure out the controls.
1そうだね プレイ済み