Setting multiple objects to exact locations in random order.

6

Attached Files

The following files have been attached to this tutorial:

.capx

random-position.capx

Download now 179.87 KB

Stats

3,100 visits, 4,325 views

Tools

Translations

This tutorial hasn't been translated.

License

This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

.

.

Maybe you have a card game and you want to position the cards in exact locations

around the layout, but of course, in random order.

There are several ways to do this,

but the easiest way by far is what @ramones suggested on the forum.

Thank you @ramones

The sprite in the capx has multiple (4) animation frames,

so I asked ramones,

'What if you have separate sprites and no animation frames?",

he said,

Same thing, just swap Sprite for Family.

So easy.

Again many thanks to @ramones

.CAPX

random-position.capx

Download now 179.87 KB
  • 1 Comments

  • Order by
Want to leave a comment? Login or Register an account!