Between Angles Detect Touch Bug [C2]

0 favourites
  • 2 posts
From the Asset Store
Surena Touch
$2.50 USD
A wrap from official Touch plugin to export touch/mouse input to other plugins.
  • Problem Description

    Designed a touch control system for the ship, but it glitches always at boundaries (top and bottom).

    Ship has invisible drag controls (L R in pylon area, and F [forward] B [back] located a bit behind the ship.

    To see bug, drag ship down with finger (grabbing invisible area behind the ship) all the way past taskbar to hit bottom boundary. Ship will still be at original 270 degree angle (can test this w/ textbox). R control (dragging right pylon w/ touch or mouse click) won't work at this position (the mas lower boundary), even though it should, as the condition includes the 270 degree angle for R (right) control to work and between angles includes the indicated angles per manual.

    A similar thing happens when ship hits upper screen boundary. (I have custom boundaries).

    In this slimmed down (no sprites, mostly no unnecessary variables) version, ship will also glitch and go past upper boundary, which does not happen in the full version. Not sure what happened.

    Attach a Capx

    http://www.darksunpictures.com/public/V ... EANING.zip

    Description of Capx

    touch/mouse click control system for ship object from Dark Sun game

    Steps to Reproduce Bug

    • Step 1 - drag ship down w invisible control behind ship past task bar to hit lower max boundary
    • Step 2 - drag right pylon to right - WON'T let you even though ship is at 270 degrees; thats the bug
    • Step 3 etc. - similar thing happens at upper right boundary

    Observed Result

    ____ What happens? ____ its above

    Expected Result

    ____ What do you expect to happen? ____ its above

    Affected Browsers

    • Chrome: (YES)
    • Edge: Yes don't think anybody uses anything else

    Operating System and Service Pack

    ____ Your operating system and service pack ____

    Windows 10 all packs uptodate, but Windows 7 and others should have the same bug

    Construct 2 Version ID

    ____ Exact version ID of Construct 2 you're using ____

    Construct 2 R 245

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Closing, please see the bug report guidelines. You have 175 events, so the problem could easily just be a mistake in your events. Please create a minimal .capx as the bug report guidelines describe if you want it to be investigated. If you need help getting events right please post in the "How do I" forum instead.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)