Need help on Clone deletion

Hey there. I’ve been working on a Galaga port/remake on Snap, and made a demo of it. But when I playtested it outside of the Editor, I noticed that when I was shooting, the clones of the bullets seemed to not disappear, as the game started to lag. Strangely, in the editor, the clones delete just fine. So I’m kinda confused on why this is. You can check the game here. If any of you find out why this is and provide a fix, it will appreciated.

just saying, due to the spam, it might take a while for others to reply. I'll look at the project though.

it’s gotta be a weird snap bug but if you right click the hit relabel and change it to = 170> it seems to work fine (or at least, lag seems to not persist eternally anymore). I can only think that this is a problem with scratch snap (I accidentally typed scratch the first time how bruh) somehow moving 8 steps twice before checking it’s current position.

What I did is I replaced
Galaga Snaped DEMO script pic (1)
with this script:


to add a cool down so it doesn't make more than 3 clones at a time, significantly reducing lag. You should probably also replace the Galaga Snaped DEMO script pic (3) with Galaga Snaped DEMO script pic (2).

Tip: You can drag script pics (like the ones above) directly into the editor. If it doesn't work and creates a costume instead, you can right-click it and select "get script" or something like that.

Also, welcome to the forums @thiseaglet_01 !

Thanks man! This helped a lot.

You're welcome! Glad I was able to help!

Hey there. New demo of my project Galaga Snap’ed is available. In this demo, there is a new background screen loop when you start the game. It doesn’t go away when you press start though, still trying to figure it out. Also, the bullet lag is fixed. (thx da-ultimate-creator!) There is still the Flighter disappering bug, but thats not really a priority. You can play here. Have fun!

The new background screen loop looks pretty neat. Once the start button issue is fixed, it will make the intro flow much smoother.

If you want to fix the background fade not stopping you should be able to stop it with another script in the stage (and fade out after to ensure it’s gone), sort of like this.

Galaga Snaped DEMO script pic

Also, are you sure there is a bug with the fighter disappearing? That doesn’t seem possible to me based on the code. Can you explain how it happens?

That should work for the background, thanks for the fix! Oh and for the flighter invis bug, click the start flag after the first start up. when you press enter, the flighter will be invisible, and you will see the laser when you shoot.

Hey there. I need a little help on making clones have animation. currently, they stick to one sprite. You can see the code here. It works with the non-clone sprites, however, when cloned, the sprite doesn’t use the animation. Any help/fix would be appreciated!

-thiseaglet_01

Hey there. Made a new demo on my project. This demo adds bullet to Galaga contact, making them “die.” Currently it just decimates all the clones, so I have to add a cool down for that. I also added the Boss Galaga animation when its hit, but its univseral for all clones, so i need to figure out that aswell. I also changed some small things, like the background change for the rounds. You can play it here. If you have any fixes for the things mentioned, please share! I will credit you in my project.

-thiseaglet_01

No need to make a new topic about the same project. Just keep it in one topic. I merged them.

Oh sorry, I’m new so I didn’t know.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.