Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Wall slide
- danieldumpling
-
17 posts
Wall slide
I am developing a rework for a game that I have created, and I can't find a way to make people slide against a wall when they hit it. You can move forward, or turn.
- MineTurte
-
1000+ posts
Wall slide
I personally do not know how to do this as I haven't ever really tried but I do suggest looking for a platformer tutorial on YouTube. Pretty sure griffpatch has made one actually. I am developing a rework for a game that I have created, and I can't find a way to make people slide against a wall when they hit it. You can move forward, or turn.
Hope this helps!
- yadayadayadagoodbye
-
1000+ posts
Wall slide
I would assume you have horizontal collision. To add wallsliding, after you do horizontal collision, check if the player if currently on the ground or in the air, if in the air and the player has touched the “ground” in some other way, they're horizontally on a wall, in which case you can set their y velocity to -1
- MineTurte
-
1000+ posts
Wall slide
Oh look who came I would assume you have horizontal collision. To add wallsliding, after you do horizontal collision, check if the player if currently on the ground or in the air, if in the air and the player has touched the “ground” in some other way, they're horizontally on a wall, in which case you can set their y velocity to -1 crawling back
- danieldumpling
-
17 posts
Wall slide
Oh I forgot to clarify that my game is top-down, here's a link: https://scratch.mit.edu/projects/838440106/fullscreen/
- MineTurte
-
1000+ posts
Wall slide
https://scratch.mit.edu/projects/838440106/fullscreen/Oh I forgot to clarify that my game is top-down, here's a link: what- how can a platformer be top-down and have wall sliding? Unless you plan on making it 3D…
Edit: or if you mean like horizontal wall sliding… Like in COD…
Last edited by MineTurte (March 20, 2024 19:59:32)
- danieldumpling
-
17 posts
Wall slide
https://scratch.mit.edu/projects/838440106/fullscreen/Oh I forgot to clarify that my game is top-down, here's a link: what- how can a platformer be top-down and have wall sliding? Unless you plan on making it 3D…
Edit: or if you mean like horizontal wall sliding… Like in COD…
It's not a platformer
- danieldumpling
-
17 posts
Wall slide
I tried bouncing the player back but it is very glitchy
- Discussion Forums
- » Help with Scripts
-
» Wall slide