Discuss Scratch

Youmad04
New to Scratch
1 post

Making Objects fall

How do you make objects fall???
drmcw
Scratcher
1000+ posts

Making Objects fall

go to x: (0) y: (180)
glide (2) secs to x: (0) y: (-180)

10 !
ScratchVaders or Galaga?
Maybe Eliza can help you decide?
r2dav2
Scratcher
56 posts

Making Objects fall

drmcw wrote:

go to x: (0) y: (180)
glide (2) secs to x: (0) y: (-180)

This is a method of doing such a task…however, the question you ask is quite broad…you could do it a variety of ways.
For instance, a “fancier” way of doing it could be something like this:

when green flag clicked
set [C v] to [0]
set [CLONE_REF v] to (YOUR REFRESH VALUE HERE!)
forever

create clone of [myself v]
repeat until <(C) > (CLONE_REF.)>

change [C v] by (1)
end
end
when I start as a clone
set [mV v] to [0]
set x to (pick random (-240) to (240))
repeat until <((180) - (ProjectY)) < [-180]>

set [ProjectY v] to ([10^ v] of ([sqrt v] of (mV)))
change [mV v] by (.5)
set y to ((180) - (ProjectY))
turn right ([abs v] of ((5) * (mV))) degrees
end
delete this clone
Or something like that…you can fancify it any way you want! xD

Last edited by r2dav2 (Dec. 19, 2013 01:22:00)

Powered by DjangoBB