Discuss Scratch

Daniel_C2A
Scratcher
100+ posts

Lag

My project lags everytime I try to animate my player. I tried to make among us earlier but couldn't animate the sprite. It literally goes 2 seconds per frame.
MasterofTheBrick
Scratcher
1000+ posts

Lag

Is there a custom block somewhere which is running without screen refresh?
Secondly, please always share the project link when posting.
Daniel_C2A
Scratcher
100+ posts

Lag

Yes
Thingied
Scratcher
1000+ posts

Lag

Daniel_C2A wrote:

Yes
Try disabling all of them then and see if the lag is fixed.
MasterofTheBrick
Scratcher
1000+ posts

Lag

Thingied wrote:

Daniel_C2A wrote:

Yes
Try disabling all of them then and see if the lag is fixed.

Not ALL of them per say, but only disable those you don’t really need. Custom blocks with no refresh usually shouldn’t affect the project unless they are in a forever loop.

Last edited by MasterofTheBrick (June 9, 2021 06:26:33)

B12_BILIRAN
Scratcher
100+ posts

Lag

Daniel_C2A wrote:

My project lags everytime I try to animate my player. I tried to make among us earlier but couldn't animate the sprite. It literally goes 2 seconds per frame.
You need to make a first sprite that has not scripts, costume or sounds then it will reduce lag.

B12_BILIRAN
A Game Designer for the Community
Daniel_C2A
Scratcher
100+ posts

Lag

I turned off the refresh-thing in the costume script. and now the side movement looks good. But after I jump, the player costume stays jump forever.The Project
Daniel_C2A
Scratcher
100+ posts

Lag

Daniel_C2A wrote:

I turned off the refresh-thing in the costume script. and now the side movement looks good. But after I jump, the player costume stays jump forever.The Project
I removed the jump script I was using currently. Here is a link on turbowarp if u can't open that one.
MasterofTheBrick
Scratcher
1000+ posts

Lag

Daniel_C2A wrote:

Daniel_C2A wrote:

I turned off the refresh-thing in the costume script. and now the side movement looks good. But after I jump, the player costume stays jump forever.The Project
I removed the jump script I was using currently. Here is a link on turbowarp if u can't open that one.

Your project looks fine now. Is there a problem we are supposed to see?
Binary-Logic
Scratcher
100+ posts

Lag

MasterofTheBrick wrote:

Your project looks fine now. Is there a problem we are supposed to see?
Your player needs to detect wall collisions, as you immediately go to the top of the wall during the collision.

The greatest glory in living lies not in never falling, but in rising every time we fall.

-Nelson Mandela

Powered by DjangoBB