Discussions

SmileBASIC Community

KennyKenny3DSXL

03/12/2016 12:41 PM ·Spoilers

Open Closed

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?

Advertisement

Comment

This post has no comments.

  • 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...

    Yeahs0
    Played
  • 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

    Yeahs0
    Played
  • 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?

    Yeahs0
    Played
  • Try my program ClockZ Public key: KKNXDKQE Maybe there's a code that might help you.

    Yeahs0
    Played
  • Too complex. Can you give me a simple one with GFILL and GPUTCHR functions?

    Yeahs0
    Played
  • Test them out

    Yeahs0
    Played
  • 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)

    Yeahs0
    Played
  • What if I want to change the GPUTCHR on the touch screen when I click? Give the code in screenshot.

    Yeahs0
    Played
  • 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

    Yeahs1
    Played
  • I meant the color of the GPUTCHR, not the display it was on.

    Yeahs0
    Played
  • Change the value of RGB from 0-255 of GPUTCHR. Try to test, experiment and explore each code and syntax.

    Yeahs0
    Played
  • 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.

    Yeahs0
    Played
  • 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

    Yeahs0
    Played
  • 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.

    Yeahs0
    Played
  • Good luck to your work and have fun programming. :D

    Yeahs0
    Played

Add a Comment

You must sign in to post a comment.

Sign in using a Nintendo Network ID to connect to users around the world by writing posts and comments and by giving Yeahs to other people's posts. You can create a Nintendo Network ID using your Wii U console or your system in the Nintendo 3DS family.

Use of Miiverse Details about Miiverse

Report Violation to Miiverse Administrators

You are about to report a post with content which violates the Miiverse Code of Conduct. This report will be sent to Nintendo's Miiverse administrators and not to the creator of the post.

Violation Type:

Post ID: 3DB-NBL7-BXM-ZM9A-LUB-B7J4

Report Violation to Miiverse Administrators

You cannot report posts made automatically by a software title.

Edit Post

Select an action: