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
Sometimes the sprite button does not recognise the touch event and so does not toggle to selected.
When sprite button is touched, they toggle to selected, on every touch event.
- Chrome: (YES)
- FireFox: (?)
- Internet Explorer: (YES)
Operating System and Service Pack
Win 7 home premium sp 1
Construct 2 Version ID