Pages: 1
Topic closed
Hey.
I just published a game right there that only lags a bit in turbo speed offline and it lags so much you could rip your eyes out it's so jittery. Can someone look at the code and tell me if there's any way to optimize this?
Project:
http://scratch.mit.edu/projects/RHY3756547/661455
Thanks,
RHY3756547
Offline
maybe try getting rid of that contant music thing, it may make it lag a little bit more.
Offline
Sometimes too many of these can lag it:
[blocks]
<when green flag clicked>
<forever>
<end>
[/blocks]
try combining scripts if possible!
Offline
I'll have a look at it for you
Well, I can see that you are using a lot of sprites to create on 3D looking sprite. This is nice, but you are using the same sprite in all of the seperate sprites. You should have the main script for the whole sprite in one sprite, and then just have scripts to make the other sprites go to the main sprite and point in it's direction.
That should make it better.
Last edited by Mozaz (2009-08-27 16:25:24)
Offline
Mozaz wrote:
I'll have a look at it for you
![]()
Well, I can see that you are using a lot of sprites to create on 3D looking sprite. This is nice, but you are using the same sprite in all of the seperate sprites. You should have the main script for the whole sprite in one sprite, and then just have scripts to make the other sprites go to the main sprite and point in it's direction.
That should make it better.![]()
That's basically what I'm doing ATM, but the sprites all need layering code too. Maybe I could combine it with the movement code for less scripts?
Anyway - my point of blame is probably the fact that 50% of the sprites are ghosted - is there any way to optimize that?
Offline
You could try hiding them.
Offline
Topic closed
Pages: 1