Discuss Scratch

toad_duzz
Scratcher
38 posts

Can someone figure out why the boss isn't spawning

game link: the game i need help with
The game uses timers and I'm guessing I coded something wrong about them because the boss is not spawning
if someone can look through the code and hopefully find a solution it would mean a lot!
deck26
Scratcher
1000+ posts

Can someone figure out why the boss isn't spawning

So which sprite and script are we looking at?
MineTurte
Scratcher
500+ posts

Can someone figure out why the boss isn't spawning

toad_duzz wrote:

game link: the game i need help with
The game uses timers and I'm guessing I coded something wrong about them because the boss is not spawning
if someone can look through the code and hopefully find a solution it would mean a lot!
Okay well first off all you script that starts the enemy spawning starts when it receives “glock” which I assume is not correct? After that it works fine and the boss spawns as it should.

Hope this helps!


Edit: haha. wayyy ahead of you deck, lol.

Last edited by MineTurte (March 24, 2024 16:06:52)


(pronouns are she/her). Advanced Alpha Game Studios Manager. Our website: https://aags2.w3spaces.com
This is JuniperActias. AKA Moth mommy. If I helped you out consider following Juni-Bug (my new account)!




If you found this secret, say uwu
Signature gradients here













toad_duzz
Scratcher
38 posts

Can someone figure out why the boss isn't spawning

hm lemme see

Last edited by toad_duzz (March 24, 2024 16:37:08)

toad_duzz
Scratcher
38 posts

Can someone figure out why the boss isn't spawning

MineTurte wrote:

toad_duzz wrote:

game link: the game i need help with
The game uses timers and I'm guessing I coded something wrong about them because the boss is not spawning
if someone can look through the code and hopefully find a solution it would mean a lot!
Okay well first off all you script that starts the enemy spawning starts when it receives “glock” which I assume is not correct? After that it works fine and the boss spawns as it should.

Hope this helps!


Edit: haha. wayyy ahead of you deck, lol.[/quote

I made it like that on purpose because I don't want the enemies to start spawning until they pick up the pistol and when they do, the zombies can start spawning

Last edited by toad_duzz (March 24, 2024 16:42:34)

MineTurte
Scratcher
500+ posts

Can someone figure out why the boss isn't spawning

toad_duzz wrote:

MineTurte wrote:

toad_duzz wrote:

game link: the game i need help with
The game uses timers and I'm guessing I coded something wrong about them because the boss is not spawning
if someone can look through the code and hopefully find a solution it would mean a lot!
Okay well first off all you script that starts the enemy spawning starts when it receives “glock” which I assume is not correct? After that it works fine and the boss spawns as it should.

Hope this helps!


Edit: haha. wayyy ahead of you deck, lol.

I made it like that on purpose because I don't want the enemies to start spawning until they pick up the pistol and when they do, the zombies can start spawning

Ah okay. Well then it should work?

(pronouns are she/her). Advanced Alpha Game Studios Manager. Our website: https://aags2.w3spaces.com
This is JuniperActias. AKA Moth mommy. If I helped you out consider following Juni-Bug (my new account)!




If you found this secret, say uwu
Signature gradients here













toad_duzz
Scratcher
38 posts

Can someone figure out why the boss isn't spawning

MineTurte wrote:

toad_duzz wrote:

MineTurte wrote:

toad_duzz wrote:

game link: the game i need help with
The game uses timers and I'm guessing I coded something wrong about them because the boss is not spawning
if someone can look through the code and hopefully find a solution it would mean a lot!
Okay well first off all you script that starts the enemy spawning starts when it receives “glock” which I assume is not correct? After that it works fine and the boss spawns as it should.

Hope this helps!


Edit: haha. wayyy ahead of you deck, lol.

I made it like that on purpose because I don't want the enemies to start spawning until they pick up the pistol and when they do, the zombies can start spawning

"Ah okay. Well then it should work?"

Nope, boss doesn't spawn

Last edited by toad_duzz (March 24, 2024 17:16:14)

toad_duzz
Scratcher
38 posts

Can someone figure out why the boss isn't spawning

looks like I'll never find the solution
fhytrfhytrfthytrtre
Scratcher
14 posts

Can someone figure out why the boss isn't spawning

scratch
when green flag clicked
deck26
Scratcher
1000+ posts

Can someone figure out why the boss isn't spawning

Most likely cause is too many clones of other objects. Try setting up a new sprite which you can clone by pressing a key. What happens if you try to clone that sprite at the time you expect the boss to appear? If it doesn't appear either then you've probably hit the clone limit.
Malicondi
Scratcher
1000+ posts

Can someone figure out why the boss isn't spawning

Clones aren't the problem, you're never broadcasting boss fight so the boss never spawns.

post #1000 post #100 i help in the forums post #1 post #500 0 second ninja
I recommend reading jvvg's essay about the scratch team before complaining, as it may change your opinion and provide insight on the topic.

coming soon :)


toad_duzz
Scratcher
38 posts

Can someone figure out why the boss isn't spawning

Malicondi wrote:

Clones aren't the problem, you're never broadcasting boss fight so the boss never spawns.

If you look at the spawning script, it broadcasts boss fight 130 seconds into the game. But for some reason it isn't. I don't think it's hitting the clone limit. Is there another way to broadcast it that would work?

Powered by DjangoBB