Discuss Scratch

AgentStrawberry_
Scratcher
8 posts

How to make my sprite stop bouncing?

I have a platformer with jumping/gravity mechanics. I added something so if you are ever touching green it will move you up 5 pixels until you aren't touching green. I did this so that it doesn't look weird if I fall and go decently deep into the green. How ever, since I have my gravity, it takes me down, and then my other script goes up. Then down. And up. It basically looks like it's bouncing. Is there any way to fix this?

Project link: here
mstone326
Scratcher
1000+ posts

How to make my sprite stop bouncing?

Put your change y by 1 script in a custom block and run it without screen refresh. That will keep him on top without seeing him rise up after falling.
enalecks
Scratcher
15 posts

How to make my sprite stop bouncing?

AgentStrawberry_ wrote:

I have a platformer with jumping/gravity mechanics. I added something so if you are ever touching green it will move you up 5 pixels until you aren't touching green. I did this so that it doesn't look weird if I fall and go decently deep into the green. How ever, since I have my gravity, it takes me down, and then my other script goes up. Then down. And up. It basically looks like it's bouncing. Is there any way to fix this?

Project link: here

when using the ‘make block’ section, you need to make the “Run without screen refresh” true (make it have a check mark).
Shad0wHawk
New Scratcher
2 posts

How to make my sprite stop bouncing?

I have the same problem. Can someone help?
Shad0wHawk
New Scratcher
2 posts

How to make my sprite stop bouncing?

enalecks wrote:

AgentStrawberry_ wrote:

I have a platformer with jumping/gravity mechanics. I added something so if you are ever touching green it will move you up 5 pixels until you aren't touching green. I did this so that it doesn't look weird if I fall and go decently deep into the green. How ever, since I have my gravity, it takes me down, and then my other script goes up. Then down. And up. It basically looks like it's bouncing. Is there any way to fix this?

Project link: here

when using the ‘make block’ section, you need to make the “Run without screen refresh” true (make it have a check mark).
How do we make change y by 1 in a custom block?

Powered by DjangoBB