I'm relatively new to construct 2, and I have a problem selecting an instance of a sprite.
I have several instances of a sprite (animation speed 0) and code which forces a check only when two instances are pressed (using global variables). When each is pressed the sprite changes it's frame from 0 to 1.
If the check is true then the system acknowledge the selection and leave the frame as is. If the check come false then I need to reset both instances selection (set frame to 0).
Thanks for the help in advance
Develop games in your browser. Powerful, performant & highly capable.
You should link a capx when you have a problem you want help with, people can help you more easily and you will have more answers ;)
If I understand well and your only problem is to reset both instance frame to 0, you just have to add a new event, using the "compare frame" condition on the sprite, just to compare it to 1. This event will select both sprites with frame number 1. You can then change the frame back to 0, if all your other conditions are verified.
I will try to remember next time to post a capx.
I have solved the problem in the fashion you wrote.