I have this project. Alot of people complain about lag. I know theres a way to fix this by stopping sprite scripts when off screen and restarting them when on screen. If anyone can help me do this the project is here.
http://scratch.mit.edu/projects/fillergames/2959629
Also can anybody reduce the amount of scripts because.
57 sprites and 319 scripts
Is INSANE.
Offline
Hello anyone?
Offline
fillergames wrote:
Hello anyone?
I might be able to help, though as it's late right now, I won't be able to do anything today. How about sometime early this week? Would that be fine with you?
Offline
ErnieParke wrote:
fillergames wrote:
Hello anyone?
I might be able to help, though as it's late right now, I won't be able to do anything today. How about sometime early this week? Would that be fine with you?
Take as long as you need.
Offline
Offline
I had an older project that loaded things when near then.
Offline
New version. Now has 57 sprites and 227 scripts.
http://scratch.mit.edu/projects/fillergames/2973331
Offline
Have you tried reducing the nunmber of "repeat" blocks? If you have a repeat 10 times block in there somewhere, having the script twice and saying "repeat 5 times" can usually make it run about 1 and a half to two times faster.
Offline
mythbusteranimator wrote:
Have you tried reducing the nunmber of "repeat" blocks? If you have a repeat 10 times block in there somewhere, having the script twice and saying "repeat 5 times" can usually make it run about 1 and a half to two times faster.
Alot of repeat untill blocks. There needed to run the game.
Offline
Maybe just put in if else statements and use distance from the character to determine whether you should use non-essential aspects of the code at the time (the actual scrolling would have to happen at all times).
Offline
BetaSmozzick wrote:
Maybe just put in if else statements and use distance from the character to determine whether you should use non-essential aspects of the code at the time (the actual scrolling would have to happen at all times).
Whoa that would work!
Offline
^^ Hopefully
Offline
BetaSmozzick wrote:
^^ Hopefully
I will make a game base to test soon.
Offline
After today's day of work, I was able to remove a lot of your scripts and compact others. Here it is, if you want to look.
Anyway, a tip that I have for you if you want to improve the frame rate is that, while making my Pac-Man game, I've found that showing a variable using Scratch's built-in display drops the game's frame rate by quite a bit. So, you could try finding alternate methods to show your variables and this should help get in 3~4 more frames per second, which I even tested.
Anyway, I hope that this helps!
Offline
ErnieParke wrote:
After today's day of work, I was able to remove a lot of your scripts and compact others. Here it is, if you want to look.
Anyway, a tip that I have for you if you want to improve the frame rate is that, while making my Pac-Man game, I've found that showing a variable using Scratch's built-in display drops the game's frame rate by quite a bit. So, you could try finding alternate methods to show your variables and this should help get in 3~4 more frames per second, which I even tested.
Anyway, I hope that this helps!
Can you post it? My parents don't allow downloads from any site thats not scratch.
Offline
fillergames wrote:
ErnieParke wrote:
After today's day of work, I was able to remove a lot of your scripts and compact others. Here it is, if you want to look.
Anyway, a tip that I have for you if you want to improve the frame rate is that, while making my Pac-Man game, I've found that showing a variable using Scratch's built-in display drops the game's frame rate by quite a bit. So, you could try finding alternate methods to show your variables and this should help get in 3~4 more frames per second, which I even tested.
Anyway, I hope that this helps!Can you post it? My parents don't allow downloads from any site thats not scratch.
Okay; I'll post it sometime tomorrow.
Offline
ErnieParke wrote:
fillergames wrote:
ErnieParke wrote:
After today's day of work, I was able to remove a lot of your scripts and compact others. Here it is, if you want to look.
Anyway, a tip that I have for you if you want to improve the frame rate is that, while making my Pac-Man game, I've found that showing a variable using Scratch's built-in display drops the game's frame rate by quite a bit. So, you could try finding alternate methods to show your variables and this should help get in 3~4 more frames per second, which I even tested.
Anyway, I hope that this helps!Can you post it? My parents don't allow downloads from any site thats not scratch.
Okay; I'll post it sometime tomorrow.
Thanks!
Can i put you in the credits?
Last edited by fillergames (2012-12-12 19:35:21)
Offline
fillergames wrote:
ErnieParke wrote:
fillergames wrote:
Can you post it? My parents don't allow downloads from any site thats not scratch.
Okay; I'll post it sometime tomorrow.
Thanks!
Can i put you in the credits?
Yes, you can. And, if you'd like to look, I decided to upload your project today. Here's the link. And your welcome!
Last edited by ErnieParke (2012-12-12 20:54:06)
Offline