トピック
zag Tall-T

What's the coding for using touch screen. I want to touch an image and I want it to goto @image

3そうだね
未プレイ
返信[1]
親投稿
Josh josh.h7
touch out tm,tx,ty if tx>0 and ty>0 and tx<500 and ty<500 and tm>0 then goto @image
0そうだね
プレイ済み
返信[2]
親投稿
mystman12 mystman12
Yep, pretty much that. The TOUCH OUT command will assign different TOUCH values to variables. the TM variable will receive the amount of frames the screen has been touched for, the TX variable receives the X position of the touch, and TY receives the Y position of the touch. After TOUCH OUT, you simply want to see if the touch coordinates are within the space you want to tap, so if your...
0そうだね
プレイ済み
返信[3]
親投稿
mystman12 mystman12
image is, say, located between points 100(X),100(Y) and 200(X),200(Y), you can check and see if that space was tapped by doing this: IF TX>100 AND TX<200 AND TY>100 AND TY<200 THEN GOTO @IMAGE Hope I helped!
0そうだね
プレイ済み
返信[4]
親投稿
zag Tall-T
It Werth it mam!!!!!
0そうだね
未プレイ