In Scratch, how do I spawn a sprite randomly at any point along any of the four edges of the stage?

I have tried using a go to motion block with a pick random operator, but of course this limits the sprite to randomly spawning along only one axis (e.g., [go to x: (pick random -240 to 240) y: -180] In this example y must be a static -180 or 180, less the sprite spawn randomly at any location on the stage.

1 Answer 1


You may do it in a few ways this is one of those:



You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .