Spawn random object from set.

Get help using Construct 2

Post » Wed Dec 05, 2012 10:16 pm

Hi, first of all i think this is a easy question but i've searched on the forums and tutorials and i have found no way to do this, sorry.

I have 4 different objects, let's name them 1,2,3,4. What i want is to make them fall randomly. Every second we should have a line of 4 objects, like: "1,1,3,2" or "4,3,1,2"...

How can i do this?

Thanks. :)
B
7
S
1
Posts: 14
Reputation: 1,178

Post » Wed Dec 05, 2012 11:10 pm

Hmm, depends on how you handle your objects. If every object is a single frame you can just add each object as an animation frame in an animation. Then when you spawn the object, set the frame to the number you wish.
B
27
S
8
G
8
Posts: 903
Reputation: 8,452


Return to How do I....?

Who is online

Users browsing this forum: nimos100, vargazso and 20 guests