memory matching bug

Get help using Construct 2

Post » Mon Feb 03, 2014 1:35 am

I tried to adapt the memory game tutorial with a falling block type of game.

My first problem is when matching the player can score even when cards do not match. Kind of lost where I messed up.

The second less problem is when the blocks drop the green tiles are supposed to be destroyed, used to work but stopped. Solutions or better methods are appreciated.

capx: https://db.tt/QO7UaGZp
B
20
S
4
G
1
Posts: 39
Reputation: 1,495

Post » Mon Feb 03, 2014 6:50 am

Guess no one wants to help, still debugging with no luck.
B
20
S
4
G
1
Posts: 39
Reputation: 1,495

Post » Mon Feb 03, 2014 7:39 am

Well you posted your question while I was asleep and decided no-one wants to help before I woke up.. (It's night in Europe)

Maybe having a bit more patience would help.
I will have a look at it now and see if I can help.
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Mon Feb 03, 2014 8:03 am

You have an event on touched yellow sprite - destroy yellow sprite.
There are no other conditions to this, but I guess you only want it destroyed when cards match.
I'm also not sure why you would use the yellow sprites are seperate from the card sprite.
To see the win is true, it is checked if two global variables are the same. These variables are set from instance variables on the cards. But nowhere in your events are those instance variables changed. so they are always 0, so they are always the same.
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775


Return to How do I....?

Who is online

Users browsing this forum: dop2000, jatin1726 and 3 guests