Discuss Scratch

neurosie
New Scratcher
2 posts

Unexpected behaviour in score incrementing

I am working on this project, and in the enemy script, when a clone is killed, the score is incremented by 100. However, when a new level starts, the score starts changing by incresingly high amounts, like 200, 1200, or 2400. What's causing this?
mitchboy
Scratcher
1000+ posts

Unexpected behaviour in score incrementing

Does starting a new level trigger a clone creation? I can't see the project right now, but I'm wondering if multiple clones are being killed at once.
neurosie
New Scratcher
2 posts

Unexpected behaviour in score incrementing

That seemed to be the issue. Every time a new level started, there were two versions of the enemy sprite, doubling the score when you hit them. Thanks.

Powered by DjangoBB