Discuss Scratch

Moonlight_Phoenix
Scratcher
16 posts

Scratch project won't work

Hi
I am making a platformer called Storm, and it was working perfectly fine until today. I clicked the green flag, and suddenly the player won't do anything except blink. I tried clicking the script, and it usually lights up and plays, but now it literally does nothing. I have put a lot of work into this project, so I don't want to start over. The only thing I did before the project crashed was add a custom block so the player blinks, then I deleted that and added the script to my other custom block. I don't think this should cause my project to crash, so I am a little confused. This project isn't shared yet, so I can't post the link, and, unless it'll really help you with figuring out why this happened, I don't feel like sharing an unfinished project. If you have any ideas on how to fix this, PLEASE tell me!

-Moonlight_Phoenix
Animal_SupernoVA
Scratcher
100+ posts

Scratch project won't work

scratch probably isn't responding because it can't handle that much code. I have some projects that are laggy and they are all projects that have a lot of code. Does your project have a lot of code?
when green flag clicked
forever
if <(blocks) > [500]> then
change [lag] by (1)
end
end

Last edited by Animal_SupernoVA (Aug. 17, 2020 00:01:32)

Moonlight_Phoenix
Scratcher
16 posts

Scratch project won't work

No, not really, less then 500 blocks.
Animal_SupernoVA
Scratcher
100+ posts

Scratch project won't work

I'm just guessing
Moonlight_Phoenix
Scratcher
16 posts

Scratch project won't work

Less then 300, actually.
Moonlight_Phoenix
Scratcher
16 posts

Scratch project won't work

Ok, I understand.
Moonlight_Phoenix
Scratcher
16 posts

Scratch project won't work

FYI:
The most code is is 186 blocks on my player sprite, and I've seen lots of projects with 1000+ blocks on a single sprite and over 3000 blocks in all, so I don't think the number of blocks is the issue…
Moonlight_Phoenix
Scratcher
16 posts

Scratch project won't work

Thanks! I looked at that discussion, but it didn't help that much…. \_(o_o)_/
It was a good idea, though. Also, now, the code will light up, but the player still doesn't move.
Moonlight_Phoenix
Scratcher
16 posts

Scratch project won't work

I'm going to restart my computer and see if that helps. One second!
Animal_SupernoVA
Scratcher
100+ posts

Scratch project won't work

Great!
Moonlight_Phoenix
Scratcher
16 posts

Scratch project won't work

It didn't do anything…
Moonlight_Phoenix
Scratcher
16 posts

Scratch project won't work

if <not (work ever again)> then
<(username) = [Moonlight_Phoenix]>
(will go crazy)
end
Moonlight_Phoenix
Scratcher
16 posts

Scratch project won't work

Oof that looks weird lol. Let me retry…


when green flag clicked
if <not (work ever again)> then
if <(username) = [Moonlight_Phoenix]> then
set [I will go crazy v] to [Yes]


else
set [I will go crazy v] to [No]
end
Animal_SupernoVA
Scratcher
100+ posts

Scratch project won't work

when green flag clicked
if <[I will go crazy] = [Yes]> then
forever
change [whatever] by (1)
go to x: ((100) * ([sin] of (whatever))) y: ((50) * ([cos] of (whatever))
wait (0.00000000000000000000000000000000000000000000000000000000000001) secs
go crazy
end
if <going crazy> then
pen down
forever
change [whatever] by (1)
go to x: ((100) * ([sin] of (whatever))) y: ((50) * ([cos] of (whatever))
wait (0.00000000000000000000000000000000000000000000000000000000000001) secs
go crazy
end
end

Last edited by Animal_SupernoVA (Aug. 17, 2020 00:48:18)

Animal_SupernoVA
Scratcher
100+ posts

Scratch project won't work

I think tomorrow. But for now,
when green flag clicked
stop [all]

Maybe this is better

when I start as a clone
delete this clone
Animal_SupernoVA
Scratcher
100+ posts

Scratch project won't work

check your script. maybe you forgot to add a event block or a forever loop outside of some if then blocks
when green flag clicked
replace item (problem) of [list] with (solution)

list.append(solution!)
or added a stop all block accidently

Last edited by Animal_SupernoVA (Aug. 17, 2020 02:15:26)

Moonlight_Phoenix
Scratcher
16 posts

Scratch project won't work

Lol, that's a lot of scripts.
Moonlight_Phoenix
Scratcher
16 posts

Scratch project won't work

Possible, but I checked, so I don't think so…
when green flag clicked
replace item (solution v) of [list v] with [problem]
Moonlight_Phoenix
Scratcher
16 posts

Scratch project won't work

Oh, it works now. I had to remove the blinking script for some reason… which is annoying, but I'm happy it works again.

Powered by DjangoBB