トピック
Kenny Kenny3DSXL

TOUCH SENSITIVITY HELP

I need help adjusting the touch sensitivity for my new program GAMEPALACE. Whenever I tap on something, it sometimes goes to more than one screen. Can somebody give me the code to prevent this problem from happening again?
0そうだね
プレイ済み
返信[1]
親投稿
Oscar PwnageBlock
What do you mean by "it can go to another screen"? Anyways, if you want it so that the first place you touch is the only place that does something you could probably do something like this...
0そうだね
プレイ済み
返信[2]
親投稿
Oscar PwnageBlock
I don't remember the exact code off the top of my head, but it should give you a good idea. TOUCH OUT SX,SY,ST IF ST==1 THEN BOUNDS=GETBOUNDS(SX,SY) ENDIF IF ISWITHINBOUNDS(SX,SY) THEN 'DO SOMETHING DEPENDING ON BOUNDS ENDIF
0そうだね
プレイ済み
返信[3]
親投稿
Kenny Kenny3DSXL
OK. I fixed that problem, but now whenever I tap a touch button, it does not keep the touch function on the screen. Can you help me out by giving me the code?
0そうだね
プレイ済み
返信[4]
親投稿
MerZ LinkZ19
Try my program ClockZ Public key: KKNXDKQE Maybe there's a code that might help you.
0そうだね
プレイ済み
返信[5]
親投稿
Kenny Kenny3DSXL
Too complex. Can you give me a simple one with GFILL and GPUTCHR functions?
0そうだね
プレイ済み
返信[6]
親投稿
MerZ LinkZ19
Test them out
0そうだね
プレイ済み
返信[7]
親投稿
MerZ LinkZ19
GFILL start of X-coordinate, then Y-coordinate, end of X-coordinate, then Y-coordinate, color sample GFILL 100,100,200,150,RGB(255,192,0)
0そうだね
プレイ済み
返信[8]
親投稿
Kenny Kenny3DSXL
What if I want to change the GPUTCHR on the touch screen when I click? Give the code in screenshot.
0そうだね
プレイ済み
返信[9]
親投稿
MerZ LinkZ19
Try this code: XSCREEN 2 DISP=0 S$="Push the A Button or Touch the screen" @MAIN TOUCH OUT TM,TX,TY BTN=BUTTON(2) IF BTN==#A OR TM==1 THEN WAIT 10:GCLS:DISP=!DISP ENDIF DISPLAY DISP GPUTCHR 0,119,S$ GOTO @MAIN
1そうだね
プレイ済み
返信[10]
親投稿
Kenny Kenny3DSXL
I meant the color of the GPUTCHR, not the display it was on.
0そうだね
プレイ済み
返信[11]
親投稿
MerZ LinkZ19
Change the value of RGB from 0-255 of GPUTCHR. Try to test, experiment and explore each code and syntax.
0そうだね
プレイ済み
返信[12]
親投稿
MerZ LinkZ19
This will be the last help I can give you. I advise you to experiment and explore the codes one-by-one and syntax to get used to it and to know what they do. I've got to know those thing as well.
0そうだね
プレイ済み
返信[13]
親投稿
MerZ LinkZ19
XSCREEN 2 CLS:GCLS: S$="HELLO WORLD" COLR=0 @MAIN TOUCH OUT TM,TX,TY IF TM==1 THEN COLR=COLR+1:COLR=COLR IF COLR==0 THEN GPUTCHR 0,119,S$,RGB(255,255,255) IF COLR==1 THEN GPUTCHR 0,119,S$,RGB(255,0,0) IF COLR==2 THEN GPUTCHR 0,119,S$,RGB(0,255,0) IF COLR==3 THEN GPUTCHR 0,119,S$,RGB(0,0,255) IF COLR==4 THEN GPUTCHR 0,119,S$,RGB(255,255,0) IF COLR>4 THEN COLR=0 VSYNC 1 GOTO @MAIN
0そうだね
プレイ済み
返信[14]
親投稿
Kenny Kenny3DSXL
Thank you so much for your help! Just for that, I will follow you. Stay tuned for the release of my program called GAMEPALACE, which will officially be available to the public in the next month or two.
0そうだね
プレイ済み
返信[15]
親投稿
MerZ LinkZ19
Good luck to your work and have fun programming. :D
0そうだね
プレイ済み