Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » HELP WITH TOP-DOWN COLLISION
- flushed-face-emoji
-
New Scratcher
4 posts
HELP WITH TOP-DOWN COLLISION
I have made a top-down collision script (sort of), but when you walk into a wall there is this kind of jittery clipping that I can seem to fix, and you are unable to move alongside the wall. \Could I please have help fixing this?
Link: https://scratch.mit.edu/projects/946421444/editor/
Link: https://scratch.mit.edu/projects/946421444/editor/
- PhiPhenomenon
-
Scratcher
500+ posts
HELP WITH TOP-DOWN COLLISION
The main problem is your custom block MOVE. You originally checked the movement based on whether X and Y can be changed. These should be modified separately, so if the character cannot move up, it should still be able to move sideways. Another minor issue has to do with how the CURRENTx/y variables are displayed, so I added an extra go to block at the end.


- Discussion Forums
- » Help with Scripts
-
» HELP WITH TOP-DOWN COLLISION