プレイ日記
[CPT_20XX] thunderstrucken
So I have an issue: I am trying to make it so that if you touch the sprite on the lower screen, then you can move it around, but if you touch next to it, nothing will happen. My problem is that the variable returned by TOUCH for what time the touch screen was touched is returning weird values. I assume that not being touched should be 0, but sometimes it's not returned as 0. Any help?
1そうだね
プレイ済み
返信[1]
親投稿
[CPT_20XX] thunderstrucken
**About the code** The reason I decrease the values for the X and Y coordinates returned by TOUCH is due to poor calibration of my touch screen, and the only other code in this program is VSYNC 1 and GOTO @LOOP, which are off screen
0そうだね
プレイ済み
返信[2]
親投稿
Reshiramax Reshiramax
You know, you can calibrate the screen in the system settings of the 3DS
0そうだね
プレイ済み
返信[3]
親投稿
[CPT_20XX] thunderstrucken
Yeah I know I just didn't want to go through the hassle
0そうだね
プレイ済み
返信[4]
親投稿
Ed CPFace
Not being touched SHOULD return a value of 0 for TM. Two thoughts: 1) Line 28 isn't clearing the old value of TM, so new values are being written over it. Going from 18 to 0 would look like "TM=08", for example. 2) There's something wrong with your screen. Whatever is causing your calibration problem may also be making your system detect touches that aren't there.
0そうだね
プレイ済み
返信[5]
親投稿
[CPT_20XX] thunderstrucken
@Ed Thank you! You're right, thanks, line 28 is doing that lol. Stupid mistake
0そうだね
プレイ済み