(SOLVED) Can't randomly set background

Hi there. I’m trying to code a statement where when a certain scene is played, it will automatically randomly decide between several backgrounds. so far, I have a sprite with all of the backgrounds set as different animations. I was thinking something where at the start of the scene, the code randomly determines a value for a variable using RandomInRange(0,4), however I have no idea how to translate that to change the animation. I’m new to gdevelop so I don’t know all the ins and outs and I would appreciate all help. thanks

You can just use change the animation and in the value, random(4) or randominrange(0,4)
Something like this:

1 Like

Awesome! it works great. thanks a lot!