Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How to make it rain a certain image
- dix26jab
- Scratcher
1 post
How to make it rain a certain image
im trying to “make it rain” an image for instance Im currently remixing my friends game (its more of a meme game) and I would like whenever you click a certain shop item that whenever you return to the main screen that it rains that item (falls from the sky) any help?
- The_Imaginarium
- Scratcher
1000+ posts
How to make it rain a certain image
I suggest making multiple clones of the image, then assigning them random values for their initial position and then decrease a variable to make it fall.
when green flag clicked
repeat (10)
create clone of [myself v]
end
when I start as a clone
go to x: (pick random (-240) to (240)) y: (180)
set [y vel v] to [0] // for this sprite only
repeat until <(y position) < [-170]>
change y by (y vel)
change [y vel v] by (-1)
end
delete this clone
Last edited by The_Imaginarium (Dec. 3, 2021 12:55:53)
- Discussion Forums
- » Help with Scripts
- » How to make it rain a certain image