Hey everyone im a newb at scratch so how do you make rocks fall from the sky and if you get hit you die. Also, how do u make gravity. One last thing, how do you make a floor. Ty in advance
Last edited by Pacatafox (2008-11-22 10:52:39)
Offline
Okay well,I'm not that great myself,but it really depends on how you want the gravity and what objects you want to be affected,how they are moving if they will regenerate at the top of the screen,etc.Here's one of my favorite ways to do it[blocks]<when green flag clicked><forever if><< <not> >><touching color[ color of ground]<change{upward momentum }by( -1)[/blocks]
[blocks]<when green flag clicked><forever><change y by( <{upward momentum }>[/blocks]
to jump or something i would do this:[blocks]<when[ up ]key pressed><set{upward momentum }to( blank)[/blocks] hope that helps:)
Offline
Do you know what a variable is?
Offline
Hi Pacatafox -
One of the best ways to learn Scratch is to look at other projects that do what you want to do and download them and learn from the scripts. So here is a project that has a few of the things you are looking for (falling items, solid floors) - maybe you will find it useful.
http://scratch.mit.edu/projects/jay/132
Offline