0 Favourites

Sprite Buttons are not Touchable

  • 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

  • I just tried it and saw that you have a tiny collision polygon try making it bigger, that fixed the it for me

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • 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.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
378 33,257
part12studios's avatar
part12studios
Unread hot topic
0 Favourites
Sprite Font Generator - v3
368 112,296
RetroDaddy's avatar
RetroDaddy
Unread hot topic
86 28,708
St4rDu57's avatar
St4rDu57