Choosing between 3 different pictures

Hi,

I’m trying to make an object spawn after it’s been moved and there are 3 different pictures I’d like it to choose from. How can I make the picture spawn on a certain location and choose randomly between the 3 pictures? I tried random pictures but it didn’t work.

Is it a sprite object? Set the three pictures as three animations for this sprite object, then after respawn:

Do = Random(2) to the animation of SpriteObject

Random(2) return a random number from [0,1,2], if your animations to choose are different than [0,1,2], for example [5,6,7] do:

Do = 5+Random(2) to the animation of SpriteObject

Let me know any doubt :slight_smile:

Thanks it worked! Are you experienced with GDevelop?