4 different random objects with no duplicates

Get help using Construct 2

Post » Thu Dec 20, 2012 11:04 am

I'm looking to have 4 different objects (in this case it would be 4 different colours)spawn at 4 set points on the screen (the four corners). Every X seconds though the colours in the corner would randomly change.

An example:
Corner 1: blue
corner 2: Green
Corner 3: Red
Corner 4: Yellow
------------------ 2 seconds come up
Corner 1: Green
corner 2: Blue
Corner 3: Red
Corner 4: Yellow


The problem i'm having is I keep getting duplicates of the same object. I've tried various different methods of trying to only have only colour up at a time, have messed around with using different animation frames as opposed to objects, but still not having much luck.

I'm pretty sure I'd need to use animation, as I'd want to anchor these four points to the screen to avoid any bugs with different screen sizes
Thanks for reading :)
B
11
S
2
Posts: 43
Reputation: 1,411

Post » Thu Dec 20, 2012 2:36 pm

Here's one way: randomColors.capx (r113)

B
54
S
28
G
18
Posts: 1,520
Reputation: 24,990

Post » Thu Dec 20, 2012 4:42 pm

This is exactly what I was looking for, thank you soo much :). Will put you in the credits and once again big thank you :) :)
B
11
S
2
Posts: 43
Reputation: 1,411


Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, Megavolt, mnashwan, shinkan, stylie1, tarek2 and 12 guests