Discuss Scratch

Tabb
Scratcher
20 posts

Sprite behavior with/without cortume

Hi all,

I'm working on a space game, so the ennemies are chassing you. And I just noticed that, with a costume (I drawn a red arrow to see the direction pointed by ennemies) the sprite do exactly what I programmed it to do. But, if I remove the costume (without touching anything in the code), then the movements become laggy and shake.

Have you ever experienced something similar ? How can I solve it ?
Thank you
scubajerry
Scratcher
1000+ posts

Sprite behavior with/without cortume

Can you share your project?
Tabb
Scratcher
20 posts

Sprite behavior with/without cortume

Unfortunately no. I don't want to share it before it is (almost) over.
Tabb
Scratcher
20 posts

Sprite behavior with/without cortume

I shared a test version of my project. So you can try to repeat the bug. It occurs with the sprite named : gps_ennemy1

Freelancer
drmcw
Scratcher
1000+ posts

Sprite behavior with/without cortume

I think you need to explain how to recreate the problem.

BTW you've chosen very odd keys for moving. what was wrong with wasd or arrows?

10 !
ScratchVaders or Galaga?
Maybe Eliza can help you decide?
Tabb
Scratcher
20 posts

Sprite behavior with/without cortume

QZSD are common in France with AZERTY keybords.

Anyway to recreate the problem, clic green flag > new game > hit key M > select pirate station attack > and go to the station. An annemis will pop so you can try to see the difference with/without costume on sprite gps_ennemy1.
drmcw
Scratcher
1000+ posts

Sprite behavior with/without cortume

Ah, hadn't noticed your location. I can't recreate the problem. The sprite only has one costume and you cannot delete it but I did erase the dot so that the costume was effectively empty and didn't notice a difference.

10 !
ScratchVaders or Galaga?
Maybe Eliza can help you decide?
Tabb
Scratcher
20 posts

Sprite behavior with/without cortume

The bug only occurs when there is no costume at all. I “solved” the problem with a little black dot so it is not noticed.
But that is weird.

Powered by DjangoBB