How do I show 2 cards in a random space between a set of 24

Get help using Construct 2

Post » Fri Jan 02, 2015 5:49 pm

I'm doing a simple memory game for my first game on Construct 2. The game game begins by showing a number of cards with different logos from known brands, the number of cards depends on the level(level 1: 2; level 2: 4; level 3: 6). When the timer reaches 5 seconds those cards disappear and a set of 24 cards, all with different logos. The player must select the cards that have been shown before.

I already have done part of the work but i'm having troubles with the placing of the cards that are shown before. Here's what i've done already:
ADs.capx

(i followed the tutorial "Creating a Memory Match Game" made by kittiewan )


I need help. Can you tell me how i can save the number of image and place the cards shown before between a random set of the rest of cards

Thanks
(Sorry if i didn't explain correctly, but if you have doubts please tell me)
You do not have the required permissions to view the files attached to this post.
B
3
Posts: 3
Reputation: 181

Post » Sat Jan 03, 2015 6:00 pm

Hi guys

I've made some progress but i still having some problems... Always appears at least one repeated card

Please go to the 1st level because that's the one that i'm working on.
Here's the project:
ADs.capx


Please help me :(
You do not have the required permissions to view the files attached to this post.
B
3
Posts: 3
Reputation: 181

Post » Sat Jan 03, 2015 6:52 pm

I'm afraid I find your events a bit irritating. You say this was done following a tutorial?

To make sense of it I would like to ask you about what exaclty you want to achieve here. I understand in the beginning there appears to be a certain number of cards you have to memorize and then pick out of a randomized set of 24 cards.

Is it important how many instances of the before shown cards appear to pick? And when you said you still had problems with repeated cards appearing: do you mean once presented cards to pick should be excluded going further on?

What I will say though: don't use copied event sheets for each level, you can simply select the same event sheet containing your game logic for each layout. Also for a game like this, you probably shouldn't even be using different layouts for each level. One will do.

What you really need to learn about are functions, they will make your events more effective and reusable. I suggest you head to the manual first.
B
23
S
6
G
10
Posts: 1,041
Reputation: 7,553

Post » Sat Jan 03, 2015 7:58 pm

@PixelRebirth Thanks!!
i already made this:
ADS new.capx


I've made some things that you said. But only the Level 1 is operational :)

And when you said you still had problems with repeated cards appearing: do you mean once presented cards to pick should be excluded going further on?


No. If i run the program, in the set of the "After Cards" there's always at least one repeated card...

Is it important how many instances of the before shown cards appear to pick?


Sorry, but can you explain me what you mean by "instances"?
You do not have the required permissions to view the files attached to this post.
B
3
Posts: 3
Reputation: 181


Return to How do I....?

Who is online

Users browsing this forum: dop2000, Yahoo [Bot] and 40 guests