Sprite Buttons are not Touchable

Bugs will be moved here once resolved.

Post » Tue Jan 26, 2016 10:45 pm

Problem Description
I’m using sprites as buttons, and would like them to toggle based on whether they are touched or not, which shows whether they are selected or not.

Sprite buttons intermittently do not recognise the touch event.

Attach a Capx
https://dl.dropboxusercontent.com/u/527 ... tShop.capx

Description of Capx
The capx file contains a few images of png format because they have transparent backgrounds. The shop and the sprite buttons.

There are two types of sprite buttons, one is an animation and the other is just a single image that gets destroyed and created on touch.
When a sprite button is clicked it toggles to the selected mode which is either animation frame 1, or a second image.

I tried these two methods to see if it was the animation that was faulty.

Steps to Reproduce Bug
  • Click on the glasses sprite button
  • Click on the no glasses button
  • Keep repeating this and you will notice that sometimes they do not toggle to selected

    Observed Result
    Sometimes the sprite button does not recognise the touch event and so does not toggle to selected.

    Expected Result
    When sprite button is touched, they toggle to selected, on every touch event.

    Affected Browsers
    • Chrome: (YES)
    • FireFox: (?)
    • Internet Explorer: (YES)

Operating System and Service Pack
Win 7 home premium sp 1

Construct 2 Version ID
Release 216
Posts: 18
Reputation: 619

Post » Tue Jan 26, 2016 11:42 pm

I just tried it and saw that you have a tiny collision polygon try making it bigger, that fixed the it for me :)
Posts: 26
Reputation: 1,649

Post » Tue Jan 26, 2016 11:48 pm

HI TMsimonW, thank you very much for your reply! I didn't release there was a setting for the collision polygon. I assumed it was the bounding box. Thanks for letting me know about collision polygons. :D
Posts: 18
Reputation: 619

Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests