Discuss Scratch

RememberNovember
Scratcher
14 posts

Need Help of Good Coder / Programmer to fix a Glitch

Hello all,

I recently updated my project and (foolishly) did not back it up as a copy. Ever since the update there has been a glitch where after a random amount of time the player stops firing, or the fire rate is reduced to an unbearably slow speed. If anyone feels up to helping me fix the problem you can find the project here: Captain Incredible

If you find a solution to this problem, please save the project to your computer and send me the file through Drop Box or MediaFire, or leave a description of the solution in the comments below. Thank you for your help

- @RememberNovember
jji7skyline
Scratcher
1000+ posts

Need Help of Good Coder / Programmer to fix a Glitch

It could be because of the flash bug in 2.0.
blob8108
Scratcher
1000+ posts

Need Help of Good Coder / Programmer to fix a Glitch

Really this should be posted in “Help with Scripts”.

But that's actually really odd – it seems it's possible to get your project into a state where the
create clone of [Shot v]
block no longer works.

Usually, this means that you've reached the clone limit (~300).

But it seems pretty clear to me that your script will eventually delete the clone:
when I start as a clone
show
go back (20) layers
go to [Captain Incredible v]
repeat until <<touching [Boss v]?> or <<touching [Helichopper v]?> or <(x position) > [230]>>>
change x by (15)
end
if <touching [Helichopper v]?> then
broadcast [Die Chopper v]
end
if <touching [Boss v]?> then
broadcast [Die Jet v]
end
wait (0.01) secs
delete this clone
So I'm not really sure what's wrong. Perhaps it's a bug in the interpreter? Try making a copy of the project and removing different features, while still keeping the bug, to make it easier to find.
RememberNovember
Scratcher
14 posts

Need Help of Good Coder / Programmer to fix a Glitch

blob8108 wrote:

Really this should be posted in “Help with Scripts”.

But that's actually really odd – it seems it's possible to get your project into a state where the
create clone of [Shot v]
block no longer works.

Usually, this means that you've reached the clone limit (~300).

But it seems pretty clear to me that your script will eventually delete the clone:
when I start as a clone
show
go back (20) layers
go to [Captain Incredible v]
repeat until <<touching [Boss v]?> or <<touching [Helichopper v]?> or <(x position) > [230]>>>
change x by (15)
end
if <touching [Helichopper v]?> then
broadcast [Die Chopper v]
end
if <touching [Boss v]?> then
broadcast [Die Jet v]
end
wait (0.01) secs
delete this clone
So I'm not really sure what's wrong. Perhaps it's a bug in the interpreter? Try making a copy of the project and removing different features, while still keeping the bug, to make it easier to find.

jji7skyline wrote:

It could be because of the flash bug in 2.0.
Thanks for the help you guys. I guess there's not really much to do until they've finished working out the kinks in scratch 2.0
blob8108
Scratcher
1000+ posts

Need Help of Good Coder / Programmer to fix a Glitch

RememberNovember wrote:

I guess there's not really much to do until they've finished working out the kinks in scratch 2.0
I'm not convinced that it is a bug; it could well be your project. Try making a simpler version of your project that still has the bug, so we can figure out what's causing it!
terminator68
Scratcher
100+ posts

Need Help of Good Coder / Programmer to fix a Glitch

So I played through, and determined that the glitch mainly occurs when you have 1 heart left. I will look through later to see where this happens. However, it may just be lag, as the project froze up on me often, and I am running this on a high-spec machine.
drmcw
Scratcher
1000+ posts

Need Help of Good Coder / Programmer to fix a Glitch

All your explosion effects unhelpfully called sprite1 etc,; at the end of their when I start as a clone block have a delete clone block. Check all your other clones are being deleted too as, has been mentioned there is a 300 limit
blob8108
Scratcher
1000+ posts

Need Help of Good Coder / Programmer to fix a Glitch

drmcw wrote:

Check all your other clones are being deleted too
Ah, good point. It didn't occur to me that there were other clones in the project!

Powered by DjangoBB