How to animate something random?

hello :D, sorry for the question but I was making a game about meteorites and I don’t know how to animate or how to randomly push them to enter the screen and destroy themselves can you help me

Hi, for the movement you could use the ‘ellipse movement’ - extension.

For spawning the asteroids randomly outside the screen you can get some inspiration from this tutorial: 5. Adding and moving shapes [GDevelop wiki]

What do you mean by destroy themselves?
When they get out of the of the screen? - There is a behavior “destroy when out of the screen”.
When they hit each other? - You probably need an animation (like an explosion or impact) and another sprite object that represents smaller asteroid parts. There’s a good example project to see how this can be done, but it’s not the easiest if you’re just getting started. Asteroids - a game example from the GDevelop game making app | GDevelop

1 Like