トピック
ZACHMAN(Z) lilstrubel

How do you make SPHITSP() work on the touch screen

Hey guys, I'm new to the community! :D I want to make a piano tiles like game but I don't know how to get the tiles to register a touch collision. Any help or advice is appreciated! Thanks! :D
2そうだね
プレイ済み
返信[1]
親投稿
ZACHMAN(Z) lilstrubel
Here is the code I have right now if anyone needs it! :-)
0そうだね
プレイ済み
返信[2]
親投稿
PChicken NerdChicken
erm SPCOL is supposed to be called before the SPHITSP is called, and only once. So DISPLAY 1 SPSET 0,255 SPSET 1,21 SPCOL 0 SPCOL 1 IF SPHITSP(0,1) THEN ?"HIT"
1そうだね
プレイ済み
返信[3]
親投稿
PChicken NerdChicken
optionally, you could use SPHITRC, which also requires a SPCOL but uses a rectangle instead of another sprite. you could use this with TOUCH OUT to not even have to use a cursor!
1そうだね
プレイ済み
返信[4]
親投稿
ZACHMAN(Z) lilstrubel
Thank you very much PChicken! :D How do I use SPHITRC? I just want a basic understanding of the command and how I can use it! Thanks!!! :D
0そうだね
プレイ済み
返信[5]
親投稿
ZACHMAN(Z) lilstrubel
I'm sorry I'm so bad at this haha it didn't work
0そうだね
プレイ済み
返信[6]
親投稿
PChicken NerdChicken
do you know what the help button is? it's the blue question mark button in the top-right. use it while the cursor is on SPHITRC to get a usage summary.
1そうだね
プレイ済み