Hello everyone
I am creating a game, in a layout I want to put 3 objects, and every time that layout is shown the objects change position. I have tried to do it with a choose or a random but when doing it the objects can be repeated and I don't want them to be repeated, only that they change places. I show an image as an example of what I want to do.
You could use an array and shuffle it then set each sprite based on the array indexes;
This tutorial is for C2 but works with C3 : construct.net/en/tutorials/shuffle-array-boss-easy-event-2396
Thank you very much for the reply. Could you tell me how to store the sprites in the array and that instead of just numbers, show or make the sprites move?
Develop games in your browser. Powerful, performant & highly capable.
You can make a single object with 3 frames and animation speed at 0, duplicate it and set their frames based on the result of the shuffling, for example :
On button clicked
For each sprite : Set frame to array.at(self.IID)