トピック
Erry estherrose123

How to use the touch screen

Can anyone tell me how to use the touch screen? For example, when I touch a sprite it should beep. Thanks in advance!
2そうだね
プレイ済み
返信[1]
親投稿
Oscar PwnageBlock
Use the TOUCH command. It will return three values... TS - Time the screen has been touched, 0 otherwise. Increments each 1/100 second. TX and TY - The coordinates of the last point touched. As all other coordinates in SmileBASIC, the Y axis is reversed. You can use the TOUCH command with this syntax... TOUCH OUT TS,TX,TY After that, you can simply use the values of TS, TX and TY.
2そうだね
プレイ済み
返信[2]
親投稿
Erry estherrose123
Thanks!
0そうだね
プレイ済み