Description

Changes the built-in Touch plugin's behavior adding additional settings: ignore invisible objects, don't click/touch through objects and others

Example Files

valerypopofftouchplus.c3p (163.66 KB)

Version History

Version Size Downloads Released
1.1.6 (Current)
Stable
8.73 KB 522 Download
1.1.5
Stable
8.98 KB 32 Download
1.1.4
Stable
8.88 KB 29 Download
1.1.3
Stable
8.81 KB 29 Download
1.1.2
Stable
8.8 KB 25 Download
1.1.1
Stable
8.79 KB 24 Download
1.1.0
Stable
8.33 KB 62 Download
1.0.0
Stable
8.29 KB 44 Download

Share

Twitter The author of this plugin valerypopoff is on Patreon. If you like their addons, consider supporting them!

Download

1.1.6 Stable (8.73 KB)

Info

Statistics

  • Download count767 total downloads
  • Latest download count 522 downloads of latest version
  • Average download count3 downloads per day average

Owners

  • 38 Comments

  • Order by
Want to leave a comment? Login or Register an account!
    • [-] [+]
    • 3
    • Fib's avatar
    • Fib
    • 3 points
    • *
    • (2 children)

    This just needs to be built into C3 by default! There's an idea that's been out there for a while.

    construct3.ideas.aha.io/ideas/C3-I-584

  • Hi Again valerypopoff!

    found another thing

    if two touchable objects are overlaping still both be touched even "Dont Touch Through Objects" checked

    • Ok, I've investigated it and you're not gonna like what I'm gonna say))

      Here's the thing.

      What you see is not a bug in the TouchPlus plugin. It is a peculiarity of how Destroy action works in Construct when it gets the instances from a Touch condition when it comes to instances of the same object type. In your case you have ovelapping instances of the same object type "DropRecursos" (yes, it's a family but in this regard it is treated like an object type).

      You can check it by printing the instance's UID before the "Destroy" action and you'll see taht only one UID gets printed before both instances dissapear.

      • Actually, you don't even need to have TouchPlus plugin in the project to witness that. Create a new project, add Sprite, Browser and Touch. Put two instances of the sprite to the layout so they overlap. Then add events:

        "On touched Sprite" →

        Browser: Log in console Sprite.UID

        Sprite: Destroy

        Launch the project and click where two instances of the sprite overlap. Both of them will desappear. See the console: only one UID is printed.

        Load more comments (4 replies)
    • Can't reproduce. Can you send me the project file?

  • Hi Again valerypopoff!

    Another bug, no more than 2 layouts

    if i have 5 layouts the plugin work fine on 1 and 2 but in 3º all touch is blocked even all checkbox are unchecked.

    and again no console information.... unless yours console.log xD

  • Hi Valerypopoff!

    For some strange reason, this plugin does not work on my project...

  • Very good plugin, but broken if used with families.. sad

    Uncaught TypeError: this._IdentifyTopLevelGroup is not a function

  • Thank you for the hotfix valerypopoff

    This is really for me one of the most useful plugins for UI-Logic in Construct 3. UI-Creation/Coding is a hell without this....

  • Haven´t tried it but this is so useful! <3

  • Thank you for this... But on r181.2 beta, i can click on the square with and without popup with any opacity.

    ( Construct 3 Standalone Application - Windows 10 )

    • Thanks for the report. Confirmed. Will figure it out soon.

      Works fine in the latest stable version though: Release r171.3 stable

    • Fixed in v.1.1.0.

      Now working in Construct versions up to r181-2. The newer versions should also work fine. They changed how the conditions are stored in r175, so I adapted the plugin to it.

      • Its strange. In my current (larger) project (r182 stable), the plugin don't work. I get always the error:

        Uncaught TypeError: Cannot read property 'GetPlugin' of null

        at C3.Action._PostInit (action.js:1)

        at C3.EventBlock._PostInit (eventBlock.js:1)

        at C3.EventBlock._PostInit (eventBlock.js:1)

        at C3.EventBlock._PostInit (eventBlock.js:1)

        at C3.EventSheet._PostInit (eventSheet.js:1)

        at 602adb74-e077-4fa0-ad11-452a2e399c19:367

        at Array.forEach (<anonymous>)

        at SingleGlobalInstance.highjack (602adb74-e077-4fa0-ad11-452a2e399c19:365)

        at 602adb74-e077-4fa0-ad11-452a2e399c19:397

        But, when i create a complete new project, i can't reproduce the bug...

        Can i send you the example-file with the bug in discord?

        Load more comments (4 replies)