Preventing the correct sequence in the draw

Get help using Construct 2

Post » Sat Oct 19, 2013 1:19 am





How to prevent the display of the correct sequence?

I've tried using a verifier UID, but failed.

ThanksRenatoB2013-10-19 01:22:03
B
74
S
13
G
3
Posts: 995
Reputation: 7,531

Post » Sat Oct 19, 2013 10:59 am

What do you mean by preventing the display of the correct sequence? That 5 4 3 2 1 are spawned in random order?mindfaQ2013-10-19 11:00:37
Visual Novel 'Engine' in 100 Events
if you ever have to choose between buying Construct 2 on scirra.com or on Steam, read this: Review
B
22
S
9
G
1
Posts: 787
Reputation: 3,786

Post » Sat Oct 19, 2013 2:49 pm

Yes. Prevent the spawned the right sequence (1,2,3,4,5) in the same order of the Sprite6 instances. If I prevent to show card #1 in the first Sprite6 (UID #1), would be a basic solution.

I tried to use UID to detect the first sprite:

X Sprite6 => RandomNumber = 1
          => (invert)Sprite6.UID = 1

In this case, when this "Sprite6 - UID #1" instance is drawn and the card #1 is spawned, the slot appears empty.RenatoB2013-10-19 15:49:57
B
74
S
13
G
3
Posts: 995
Reputation: 7,531

Post » Sun Oct 20, 2013 1:02 am

Some help?
B
74
S
13
G
3
Posts: 995
Reputation: 7,531

Post » Sun Oct 20, 2013 4:34 pm

Please, some help. Just missing this detail so that I finish the game. I just need some suggestions and, if possible, with some explanations. Thanks.
B
74
S
13
G
3
Posts: 995
Reputation: 7,531

Post » Sun Oct 20, 2013 5:00 pm

I still don't fully understand what is happening, sorry.
Can you explain step by step what is happening? And what should happen instead?

I see that you destroy the sprites 1-5 that are there. Then it gets blurry, because we don't know how many sprite 6 there are, what the default value of random number is (guess 0), where repeat count is set back to 5, if random number is set back to 0 after a sprite1-5 has been spawned, etc..

Basically don't know how you handle the variables that seed into the random distribution of your event.
Visual Novel 'Engine' in 100 Events
if you ever have to choose between buying Construct 2 on scirra.com or on Steam, read this: Review
B
22
S
9
G
1
Posts: 787
Reputation: 3,786

Post » Mon Oct 21, 2013 12:41 am

@mindfaQ

Look at the original file: https://dl.dropboxusercontent.com/u/108799982/Capx%20Demos/RandomSprite.capx

I used the basic idea to create my game. This projet was created by another user. In this CAPX, the sprites are not arranged side by side, but try to imagine them in this way. I want to know how to prevent the correct order is shown on the screen, ie, avoid the game to be solved in the draw.
B
74
S
13
G
3
Posts: 995
Reputation: 7,531

Post » Mon Oct 21, 2013 11:49 am

Hmmm, wouldn't that mean you would need to conceal either the random cards at top (so that you don't see their number) or the required sequence on the bottom?

Like give each sprite a second frame that shows the same card back for every card, set animation speed to 0. Then when the card is laid down, set frame to 1. Then when you want the number of the card to be revealed, for example when it is successfully laid on the correct number, set frame number to 0.mindfaQ2013-10-21 11:50:47
Visual Novel 'Engine' in 100 Events
if you ever have to choose between buying Construct 2 on scirra.com or on Steam, read this: Review
B
22
S
9
G
1
Posts: 787
Reputation: 3,786

Post » Mon Oct 21, 2013 12:37 pm

You really don't understand, but thanks anyway.

These cards appears open and the player has to must put them each one in the correct order. On my game, he needs to swaping these cards. I just need to make at least one of these cards never appear in the correct position, after the draw, so the sequence is not completed automatically.
B
74
S
13
G
3
Posts: 995
Reputation: 7,531

Post » Mon Oct 21, 2013 1:47 pm

And the correct position is the one they are created in from left to right? So if it spawns 5 1 2 3 4, you would need to order those cards to 5 1 2 3 4?

How about changing the correct sequence to something else (like a second random generation of 5 invisible sprites on the same positions and later on check if 5 is overlapping invisible 5 and so on)mindfaQ2013-10-21 13:48:40
Visual Novel 'Engine' in 100 Events
if you ever have to choose between buying Construct 2 on scirra.com or on Steam, read this: Review
B
22
S
9
G
1
Posts: 787
Reputation: 3,786

Next

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 3 guests