Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Scrolling Tile Platformer Collision Bug
- Ninjameleon
-
2 posts
Scrolling Tile Platformer Collision Bug
I am making a scrolling tile platformer using Griffpatch's excellent tutorial on YouTube, but I must have messed up at some point and now my player character will go through blocks when he either stands on a 1x1 platform or jumps through a 1x1. This is the game:
https://scratch.mit.edu/projects/864551303/
If someone can figure out what causes the bug that would be VERY helpful. Please don't make me do this by myself…
https://scratch.mit.edu/projects/864551303/
If someone can figure out what causes the bug that would be VERY helpful. Please don't make me do this by myself…
- StickmanRed
-
6 posts
Scrolling Tile Platformer Collision Bug
Maybe you need to set the player width lower than 16? I think the problem happens because, when the stickman stands in the middle of a 1x1 tile, the collision detection scripts check x-coordinates beyond the edges of the tile, making the program think that there's no tile there…
- Ninjameleon
-
2 posts
Scrolling Tile Platformer Collision Bug
That was the problem, thank you! It helped a lot Maybe you need to set the player width lower than 16? I think the problem happens because, when the stickman stands in the middle of a 1x1 tile, the collision detection scripts check x-coordinates beyond the edges of the tile, making the program think that there's no tile there…

- Discussion Forums
- » Help with Scripts
-
» Scrolling Tile Platformer Collision Bug