On hold and double tap on HTML Element object

0 favourites
  • 2 posts
From the Asset Store
Tap Tap Robot
$2.80 USD
60% off
Full game Construct 2 and Construct 3 to post on Google Play
  • TLDR: Is there any hacky way to get "on hold ID/class" and "double-click id/class" on an HTML Element object without going to JS?

    Longer version:

    The touch functions on the HTML Element are quite limited compared to the touch object. There, we have double tap, on hold, and more.

    I'm looking for a way to do a hold function on a button that I'm using in the HTML element without going into too much custom JS. My though was trying to do some hybrid of Touch object and getting info from HTML Element but those two don't share information, that is, the HTML Element can't be selected as a object in the Touch object.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Just while writing this I thought of a hacky way to fix this.

    Create a sprite and using the HTML Element position at function I can have it follow my button. Then I can just use the Touch object to do my bidding! :P

    But, it would be nice to have those built into the HTML Element object...

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