Matching game - when 2 cards don't match - flip back - err how
Stormtrix
Member Posts: 256
howdy
working on a matching game - and followed tshirt's card demo and got the cards to randomize as well as know when 2 cards match and then destroy them..
just stuck on when 2 cards don't match to flip them back to the blank card.
i'm thinking i need to use a boolean game attribute. not sure about it though.
thanks,
storm
working on a matching game - and followed tshirt's card demo and got the cards to randomize as well as know when 2 cards match and then destroy them..
just stuck on when 2 cards don't match to flip them back to the blank card.
i'm thinking i need to use a boolean game attribute. not sure about it though.
thanks,
storm
Comments
still having this problem.. i know someone knows the answer
Do i need a boolean attribute for every card? or just one game one and one self one on actor.
i'm trying different stuff and trying to make sense of barkbark's demo in relation to a matching game.
unfortunately i still am having some issues with it.. I understand how to use integers to match cards and destroy.. it's just how do you add to each actor the idea of knowing you've just made 2 selections and they don't match, turn them back to blank card -- with the same picture behind it.. i've uploaded my gameproj if you or anyone cares to look at it... i have several game attributes made just for the idea of playing around with different settings.. not all in use at moment. again i'm also using tshirt's card randomization demo so each game could be different card placements..
http://www.kztoons.com/testermatch.zip
BUT, is there a way you can implement a rule that says if cards don't match, then after 1 second, spawn the top of the card back?
i'm trying that a couple of different ways and still having issues.. think i might give up on the whole random thing and just do static locations for cards and new game goes to new scene for different layout.. is that how you do your non-matching? timer.
I can create the random cards and all. But... how can I assure that all the cards will have a match? I'm just not sure how to create random cards where all have a match. Feel free to email me to if you'd like, rbsmith5@gmail.com
Thanks in advance.
Marisa