Discuss Scratch

cyberwild360
New to Scratch
1 post

Having Issues with Turn

Please take a look at my project I need some help.

It's still in a draft but specifically I'm having trouble with the girls hitting the trampoline and “bouncing” off. If you look at Girl1 - In the IF statement it adds one to the counter and I tried adding the command Turn Right/Left 90 but when she hits the trampoline she contines down and finishes the script. Any ideas?

I know this can be a lot better and any help would be greatly appreciated.
drmcw
Scratcher
1000+ posts

Having Issues with Turn

You're gliding then checking if it's touching. The glide block won't finish until the sprite has completed all the movement in other words the touching will never happen. To fix you could remove the touching script and put it in a forever loop and stick a when I start as a clone at the beginning, then the touching logic will be running in parallel with the glide.

10 !
ScratchVaders or Galaga?
Maybe Eliza can help you decide?
levtey
Scratcher
100+ posts

Having Issues with Turn

Have a separate script that says
when green flag clicked
forever

if <touching [Trampoline v]?> then

repeat [number]
change y by [whatever]

end
end
end
And instead of having gliding, do
when green flag clicked
repeat until <<touching [Trampoline v]?> or <touching [edge v]?>>

change y by (-5)
end

Powered by DjangoBB