Discuss Scratch

ThunderGuns
Scratcher
23 posts

Issues With Lag

I made a quick project that can be seen here: https://scratch.mit.edu/projects/990918747/ However, the player occasionally clips into the box, causing a lag spike. (If you can't clip into the box, push it into the corner). Does anyone have a solution for this, as some with possibly lower end computers might constantly clip into the box. Any help would be cool, thanks.
PyraEthan12
Scratcher
1000+ posts

Issues With Lag

Scratch with it’s limitations won’t work with a fix, you could try using less scripts or redirect players to Turbowarp, which can make it run faster.
yadayadayadagoodbye
Scratcher
1000+ posts

Issues With Lag

PyraEthan12 wrote:

Scratch with it’s limitations won’t work with a fix, you could try using less scripts or redirect players to Turbowarp, which can make it run faster.
This is unrelated to scratch's limitations, even a supercomputer would lag in this case, as its trying to push the box out infinitly (due to it trying and failing), so the faster your computer/device is, the more its pushing, and thus the lag is the same.

To fix this, just make it so the player gets pushed away if the box fails to be pushed.

Scratchers that I've cati-fied

Powered by DjangoBB