Discuss Scratch

Marcus_-_-2007
Scratcher
43 posts

How to stop sprite from going into the ground

Sorry for the lack of info in the title didn't know what else to call it.

I have made a “gravity” script where when your sprite umps he falls back down. But when the sprite falls down it is always partly in the ground.

tell me if this link works or not

https://scratch.mit.edu/projects/573053353/editor
Thingied
Scratcher
1000+ posts

How to stop sprite from going into the ground


(the custom block is running without screen refresh)
The text is a little blurry so I think I'll just explain it here(not as detailed though). Repeat as many times the sprite has moved to get out of the wall. If it's still touching the level, it probably means that it's a ceiling instead of a floor so go down until it's out and it'll probably be good.

Last edited by Thingied (Sept. 21, 2021 14:27:13)

Powered by DjangoBB