This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2013-02-04 07:25:04

meggyxx
New Scratcher
Registered: 2013-02-04
Posts: 1

How to make SPIRTES fall from the top of the screen

i need to make sprites fall from the top of the screen ANY HELP?

Offline

 

#2 2013-02-04 10:59:12

Textbasedgamesegdxt
New Scratcher
Registered: 2013-02-04
Posts: 3

Re: How to make SPIRTES fall from the top of the screen

when green flag clicked
go to x0 y180
repeat until y position < -177
change y by -1

Offline

 

#3 2013-02-04 13:13:55

dechan
Scratcher
Registered: 2012-12-20
Posts: 69

Re: How to make SPIRTES fall from the top of the screen

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

 

Board footer