How do I randomly load images from sprite

Get help using Construct 2

Post » Wed Apr 20, 2016 3:08 am

capx file: https://www.dropbox.com/s/6vjtzeg6tt4v1jn/MemoryMatching-Birds.capx?dl=0

I have created a static version of the game. What I would like to know how to do is randomize it so when the level is loaded each time the first set of sprites is randomly picking through all 7 frames. Then when the second set is loaded it will take a predetermined number of the images which were loaded previously as well as images that weren't displayed so the user can select the matching items.

In my current example I am loading 3 frames of "Sprite", waiting for a defined amount of time and destroying them. Then turning "Sprite2" frames to visible and setting it so if the right ones are selected correctCount increases.

Any direction or help is greatly appreciated.
B
29
S
10
G
3
Posts: 69
Reputation: 3,515

Post » Wed Apr 20, 2016 10:32 pm

If there is any additional information needed on this please let me know. I have tried families and arrays but my knowledge of both is limited.
B
29
S
10
G
3
Posts: 69
Reputation: 3,515

Post » Thu Apr 21, 2016 9:33 am

something like this?

Image

VisualBrain.capx
Image
B
65
S
23
G
7
Posts: 1,504
Reputation: 10,894

Post » Thu Apr 21, 2016 3:59 pm

@korbaach

Wow, that is more than I was trying to do at this stage, time to wrap my head around it.

It also explains why I wasn't having any luck with the things I was trying.
B
29
S
10
G
3
Posts: 69
Reputation: 3,515


Return to How do I....?

Who is online

Users browsing this forum: ajcoppersmith, blue visionary and 4 guests