I have attached my capx
I tried to reverse engineer a memory match game but being new to construct I am missing some pieces that appear to be over my head.
My ultimate needs are to
1. Match two identical items and destroy them then add to a correct answer variable (the variable is not in the example but I can handle this) that will move user to next level once they correctly match all like objects and to be saved for tracking level completion to db
2. Error check if two items clicked don't match and reset picked count for the object, so the user has to click two like items in succession and if not add to an incorrect answer variable that will be tracked and saved off to db
My current problems are:
It currently allows me to click on matching like items and destroy them but if I click on for example object 1 (purple dragonfly) and then a non-like object (purple worm) and then a like object of either of the previously clicked items (blue dragonfly or blue worm) it will destroy the two like items and keep the previously clicked item active as well
I tried using "else" reset picked variable to zero if expression wasn't equal but it seems that if the expression is false the sub-event doesn't run if I read the manual correctly.
My other issue is it will also let me click on the same object twice and will then destroy the two like items which doesn't work for me either as I want them to have to click on both like objects.
In my searching I've seen using UID's to compare and some references to using a single sprite sheet and then comparing instances . The lower levels of this will be static
but as levels increase I would like them to animate so i have avoided using x y comparing thus far.
Any help would be greatly appreciated.