when green flag clicked
go to x0 y180
repeat until y position < -177
change y by -1
Offline
Have you considered the Gravity Marble sprite which comes with Scratch as the base code for your falling sprites? It's located in the Costumes/Things folder.
It already knows how to fall from a height and it accelerates on the way down.
The first block of its code, with a few mods to the "go to" block.
when gf clicked set [x velocity v] to (0) set [y velocity v] to (0) go to x: (pick random (-460) to (460)) y:(-180)
Last edited by dechan (2013-02-04 13:14:44)
Offline