Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Making Objects fall
- drmcw
- Scratcher
1000+ posts
Making Objects fall
go to x: (0) y: (180)
glide (2) secs to x: (0) y: (-180)
- r2dav2
- Scratcher
56 posts
Making Objects fall
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 cloneOr something like that…you can fancify it any way you want! xD
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
Last edited by r2dav2 (Dec. 19, 2013 01:22:00)
- Discussion Forums
- » Help with Scripts
- » Making Objects fall