Discuss Scratch

Norse7
Scratcher
67 posts

Help with jumping [Platformer]

So, In my platformer the jumping looks a little odd because the player slows down in the air, then quickly teleports to the spot right ahead of it. I have noticed that this happens more often when jumping to the left.

My project: https: https://scratch.mit.edu/projects/991899132/

Last edited by Norse7 (March 30, 2024 11:44:31)


“It’s not a bug; it’s an undocumented feature.” ― Anonymous

when green flag clicked
forever
change [ awesomeness] by (1)
end
Intelligent684
Scratcher
90 posts

Help with jumping [Platformer]

I see your issue. I believe that it only slows down in the air because you hit the ceiling. Make your jump a lot less high, and it will work fine.

~=~=~=~=~=~=~ Pay it forward <3 ~=~=~=~=~=~=~

If I helped, propose my project to be featured! Thanks!
Norse7
Scratcher
67 posts

Help with jumping [Platformer]

I have no ceiling code and there is no ceiling in my level. It is something else I think.

“It’s not a bug; it’s an undocumented feature.” ― Anonymous

when green flag clicked
forever
change [ awesomeness] by (1)
end
Intelligent684
Scratcher
90 posts

Help with jumping [Platformer]

No, when you hit the top of the area, it stops moving. If you don't hold up for the entire time, it will go down like normal.

~=~=~=~=~=~=~ Pay it forward <3 ~=~=~=~=~=~=~

If I helped, propose my project to be featured! Thanks!
Intelligent684
Scratcher
90 posts

Help with jumping [Platformer]

OHHH I FOUND WHY! So, your screen doesn't move out of the area, but the sprite does. so it compensates for the time for the sprite to fall down.
It happens on the left and right side too. The sprite moves all the way to the right, but you can't see it on the screen, so it takes time to move back to the original screen.

Last edited by Intelligent684 (March 30, 2024 11:58:13)


~=~=~=~=~=~=~ Pay it forward <3 ~=~=~=~=~=~=~

If I helped, propose my project to be featured! Thanks!
Norse7
Scratcher
67 posts

Help with jumping [Platformer]

could you please explain further? also have you even looked at the project and pushed see inside? that could help diagnose the problem.

“It’s not a bug; it’s an undocumented feature.” ― Anonymous

when green flag clicked
forever
change [ awesomeness] by (1)
end
Intelligent684
Scratcher
90 posts

Help with jumping [Platformer]

You have to re-share and then I can double check it. But, the thing that I looked at, what happens is, the sprite moves in a big area like a platformer, right? But the screen does not. So the sprite just stays at the top/left/right of the screen until it goes back to the main screen that everyone sees. Re-share, and I can make a remix of it, post it here, and I'll put a background and objects in it so you see what I mean.

~=~=~=~=~=~=~ Pay it forward <3 ~=~=~=~=~=~=~

If I helped, propose my project to be featured! Thanks!

Powered by DjangoBB