Hey,
I'm making this little game to teach my self C2.
dl.dropbox.com/u/26785144/CreateRandom.capx
Explanation:
You move the mouse to move the piece and press Space to change its color.
You have to catch the colored blocks falling from the sky, but to do that you will have to catch it with the right color in the animation.
What I can't find out is how to create a random object every X seconds?
The idea I had was to make a global number variable, f.ex "randomObject"
and make c2 check:
randomObject = 1 = create Blue
randomObject = 2 = create Yellow
randomObject = 3 = create Red
randomObject = 4 = create Green
and every X seconds I would set the value of randomObject to random(1,5).
If I do this, nothing happens.
And I realize if this would work C2 would create multiple objects.
I am pretty much stuck. :/
edit: formatting