Discuss Scratch

jackbkennedy
New to Scratch
4 posts

Falling objects.

Hi,

I'm new to scratch and having problems putting this game together.
I can't seem to get the “bottle cap” to go back to the top and keep falling once it has reached the bottom of the screen. I think this is something to do with the variables I am using if anyone could help I would really appreciate it. The aim of the game is to try catch the coke bottle caps and dodge the mentor (which i haven't added yet).

Regards,

JK

<iframe allowtransparency=“true” width=“485” height=“402” src="http://scratch.mit.edu/projects/embed/17196492/?autostart=false“ frameborder=”0" allowfullscreen></iframe>
ChocolateTeapotNot
New to Scratch
100+ posts

Falling objects.

You can't guarantee the cap will always touch the glass so use
repeat until <<touching [glass v]?> or <(y position) < [-175]>>
...
end

You also need to set those screen variables otherwise they will always be 0 which is not what you want; use this block
set [... v] to [0]
to set to more suitable numbers

My drmcw account has viewed too many forum topics so cannot view anymore! This account however says it all!

Powered by DjangoBB