Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Lag
- 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.
Secondly, please always share the project link when posting.
- MasterofTheBrick
- Scratcher
1000+ posts
Lag
Try disabling all of them then and see if the lag is fixed. Yes
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
You need to make a first sprite that has not scripts, costume or sounds then it will reduce 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.
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
The ProjectI removed the jump script I was using currently. 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.Here is a link on turbowarp if u can't open that one.
- MasterofTheBrick
- Scratcher
1000+ posts
Lag
The ProjectI removed the jump script I was using currently. 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.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
Your player needs to detect wall collisions, as you immediately go to the top of the wall during the collision. Your project looks fine now. Is there a problem we are supposed to see?
The greatest glory in living lies not in never falling, but in rising every time we fall.
-Nelson Mandela
- Discussion Forums
- » Help with Scripts
- » Lag