Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Making objects fall.
- jackbkennedy
-
New Scratcher
4 posts
Making objects fall.
Hi,
I'm new to scratch and I'm trying to make a game where objects fall from the top of the screen and you have to try catch them in a glass. I'm having trouble getting the objects to fall continuously and then go back to the top and repeat. If anyone could help I'd really appreciate it.
Thanks,
JK
I'm new to scratch and I'm trying to make a game where objects fall from the top of the screen and you have to try catch them in a glass. I'm having trouble getting the objects to fall continuously and then go back to the top and repeat. If anyone could help I'd really appreciate it.
Thanks,
JK
- scratchhacker3000
-
Scratcher
500+ posts
Making objects fall.
Hi,
I'm new to scratch and I'm trying to make a game where objects fall from the top of the screen and you have to try catch them in a glass. I'm having trouble getting the objects to fall continuously and then go back to the top and repeat. If anyone could help I'd really appreciate it.
Thanks,
JK
when green flag clickedThis will make the object fall until it touches the glass. Then it will go to a random position at the top of the screen and fall until it touches the glass. It will do this FOREVER.
forever
hide
go to x: (pick random (edge of screen) to (other edge of screen)) y: (top of screen)
change y by (-10)
show
repeat until <touching [glass v]?>
change y by (-3)
end
end
P.S. Forever is a very long time.
Last edited by scratchhacker3000 (Jan. 29, 2014 22:18:33)
- jackbkennedy
-
New Scratcher
4 posts
Making objects fall.
Thank You!
Last edited by jackbkennedy (Jan. 30, 2014 08:18:08)
- jackbkennedy
-
New Scratcher
4 posts
Making objects fall.
Hi
Sorry to bother you again but my scripts don't seem to be implementing correctly. I followed your instructions but I think I haven't done the variables correctly. The aim is to keep the bottle caps falling and when they fall into the glass you get a point (but at the moment it only falls once). Then I'm going to add mentos which you will have to dodge. Any help on this would be much appreciated.
Thanks
JK
<iframe allowtransparency=“true” width=“485” height=“402” src="http://scratch.mit.edu/projects/embed/17196492/?autostart=false“ frameborder=”0" allowfullscreen></iframe>
Sorry to bother you again but my scripts don't seem to be implementing correctly. I followed your instructions but I think I haven't done the variables correctly. The aim is to keep the bottle caps falling and when they fall into the glass you get a point (but at the moment it only falls once). Then I'm going to add mentos which you will have to dodge. Any help on this would be much appreciated.
Thanks
JK
<iframe allowtransparency=“true” width=“485” height=“402” src="http://scratch.mit.edu/projects/embed/17196492/?autostart=false“ frameborder=”0" allowfullscreen></iframe>
- scratchhacker3000
-
Scratcher
500+ posts
Making objects fall.
HiDo you mean this variable?
Sorry to bother you again but my scripts don't seem to be implementing correctly. I followed your instructions but I think I haven't done the variables correctly. The aim is to keep the bottle caps falling and when they fall into the glass you get a point (but at the moment it only falls once). Then I'm going to add mentos which you will have to dodge. Any help on this would be much appreciated.
Thanks
JK
<iframe allowtransparency=“true” width=“485” height=“402” src="http://scratch.mit.edu/projects/embed/17196492/?autostart=false“ frameborder=”0" allowfullscreen></iframe>
(top of screen)If so, that is not supposed to be there. You're supposed to replace that with the x position of the top of the screen. If not, are you using a forever block?
- ProfessorDrBadness
-
New Scratcher
5 posts
Making objects fall.
Hey there I have made a falling game but my score does not seem to be working Any help would be great.
https://scratch.mit.edu/projects/73462668/#editor
https://scratch.mit.edu/projects/73462668/#editor
- HardClaw57
-
Scratcher
500+ posts
Making objects fall.
Hey there I have made a falling game but my score does not seem to be working Any help would be great.Make your own post.
https://scratch.mit.edu/projects/73462668/#editor
- Discussion Forums
- » Help with Scripts
-
» Making objects fall.




