How do I create known object between random objects

0 favourites
  • 3 posts
From the Asset Store
Fully commented source code/event sheet & sprites to create a space shooter game
  • Hello guys, what I'm trying to do is create five instances of an object that has four animation frames, but I want one of those five instances (in a random order) to have animation frame number 3, while the others must have animation frame 0, 1 or 2 (random).

    I created a .capx with the objects and a event that create five blocks with random colors (0, 1 or 2 animation frame) so you guys have something to start. I really have no idea how to do that, please help me!

    Summarizing what I want to do:

    Click button --> Create 5 blocks

    one of the blocks must be green

    other must be red, blue or yellow

  • Just make 4 blocks with frames 1to3, and one more, that is always frame 0.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • lol thanks that was quite simple

    the example i used its not exactly what i'm trying to make but I thought it should work. it's a little bit more complicated than that, I will try later to see if I can achive what I want. If I can't than I'll be back hehe

    Thanks again

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)