Discuss Scratch

Crazy_Amphibian
Scratcher
13 posts

i need some help

so on this game I'm making, I'm generating a world, but it goes super slow. any ideas on how to fix this?
https://scratch.mit.edu/projects/127731700

M A X I M U M O V E R D R I V E
asivi
Scratcher
1000+ posts

i need some help

Hi, tour “FPS” variable' monitor says 30, so exactly, what is the problem you have with?
gor-dee
Scratcher
1000+ posts

i need some help

where you are generating the world, put the code from “when I receive gen2” in a custom block and run without screen refresh. That should help.
asivi
Scratcher
1000+ posts

i need some help

Please read the stickied informative topic i'm linking below and use the template to ask, thanks.

☛ Welcome to Help with Scripts!!! ☚
Crazy_Amphibian
Scratcher
13 posts

i need some help

@gor-dee, what do you mean by without screen refresh?

M A X I M U M O V E R D R I V E
TheGamer8608
Scratcher
16 posts

i need some help

Q:

Crazy_Amphibian wrote:

so on this game I'm making, I'm generating a world, but it goes super slow. any ideas on how to fix this?
https://scratch.mit.edu/projects/127731700

;
A:

For an anwser, I wrote:

Try making the engine generate less air. All that adding to the list is what's causing the lag.

if <it's lagging::sensing> then
repeat until <it doesn't lag::sensing>
add [less air] to [the list "world." v]
then {
test (the project)::grey
}::custom-arg
Or you can you use TURBO MODE. It speeds up generation, therefore reduces lag, whilst active.
If you need anything else, just ask @jseeli or S_Tutorials.
Sorry that you might not find what you want via their profiles.

;

;

-@TheGamer8608
Get isOnline Here!

Scratch On And Keep Gaming!

;
gor-dee
Scratcher
1000+ posts

i need some help

Crazy_Amphibian wrote:

@gor-dee, what do you mean by without screen refresh?
When you make a custom block a little menu says “options”…. click on it and check the “run without screen refresh” box. If you don't do this the repeat loops will only run 30 times / sec, now it will run much faster! Even so it's still slow, do you really need such huge lists?
Crazy_Amphibian
Scratcher
13 posts

i need some help

i need some way of representing Nill / Null / NaN (which ever you prefer). what else will i use?

M A X I M U M O V E R D R I V E
Crazy_Amphibian
Scratcher
13 posts

i need some help

@gor-dee
thanks for the tip, soo much faster!

M A X I M U M O V E R D R I V E

Powered by DjangoBB