Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Platform detection
- GameCat456
-
31 posts
Platform detection
I'm working on my first platformer, and I am trying to figure out how to make it so that when the character jumps, the bottom of my platform will act as a ceiling, and stop it from going through it. This actually works, however, once it gets back on the ground, I can no longer jump. Can you please help me fix this problem? Also, if you can please give tips to make a good platformer, or point out anything else I did wrong with the code so far.
Thanks, heres the link https://scratch.mit.edu/projects/450670746/
Thanks, heres the link https://scratch.mit.edu/projects/450670746/
Last edited by GameCat456 (Nov. 17, 2020 15:54:02)
- imfh
-
1000+ posts
Platform detection
I'm not entirely sure what your problem is, as it seems to be working now. Did you fix it?
As for some tips, I would check out this great platformer tutorial by @griffpatch: https://scratch.mit.edu/projects/67727504/
The tutorial's code is different from yours, but you still might learn something from it.
As for some tips, I would check out this great platformer tutorial by @griffpatch: https://scratch.mit.edu/projects/67727504/
The tutorial's code is different from yours, but you still might learn something from it.
- GameCat456
-
31 posts
Platform detection
Yes, I used some code from that tutorial, but I also wanted to do some myself, so that its more original and unique. Also, yes, I did fix the problem.
- GameCat456
-
31 posts
Platform detection
Actually, there's another thing not working. If you jump on the grass block and then jump into the air to the right, you just float. Do you know how to fix that, and do you know why its happening?
Last edited by GameCat456 (Nov. 17, 2020 19:43:24)
- imfh
-
1000+ posts
Platform detection
There's a little pixel drawn on your player sprite to the left. If you go to the costume editor and press Ctrl+A to select everything, you should see it. The pixel is touching the grass block making the player float.
- Discussion Forums
- » Help with Scripts
-
» Platform detection