Discuss Scratch

appleBananacucumber
New to Scratch
2 posts

User getting stuck in platforms

When the ball jumps from third platform to the first, it gets stuck inside
Anyways to fix this?

https://scratch.mit.edu/projects/207350933

Last edited by appleBananacucumber (March 8, 2018 16:04:00)

deck26
Scratcher
1000+ posts

User getting stuck in platforms

Imagine you're 4 above a platform and change y by -6 in one move - that'll put you partly in the platform. So whenever you're changing y by something other than a single pixel you need to check that the move wasn't too big. One option is a custom block with no screen refresh that moves the sprite only until it is touching the ground/platform.
appleBananacucumber
New to Scratch
2 posts

User getting stuck in platforms

Ok thank you. Is there an example i can see?
mstone326
Scratcher
1000+ posts

User getting stuck in platforms

Take a peek through this tutorial. It covers everything you'll need for a great platformer.

https://scratch.mit.edu/projects/67727504/

Technology Director / Teacher Grades K-8
Head High School Baseball Coach

Halloween Boss Battle - Taking Back our Woods
https://scratch.mit.edu/projects/257155118/
Most Recent - Meltman
https://scratch.mit.edu/projects/144049407/
Studio - My Best Projects
https://scratch.mit.edu/studios/4125978/

Powered by DjangoBB

Standard | Mobile