Random flying (without a path)

Hi! How would you make a butterfly fly around randomly (not on a path)?

2 Likes

I would create a variable and either randomize it or create an algorithm depending on how you want it to fly. You could then plug in that variable to the heading or x,y,z coordinates depending on what you want to achieve.

1 Like

Thanks. In Scratch it is possible to have an object glide around randomly. Is there a simple way to do something similar here?

2 Likes

Not that I have found. I would personally write a simple algorithm and loop the movement.

2 Likes

Here you have a quick example,


Hope It helps

2 Likes

That works! Thank you.

1 Like