Discuss Scratch

plasmaticatt
New Scratcher
14 posts

Cloned bullets go to the original non-clone

I'm at it again! This time, it's probably something super simple and I'm just not trying hard enough, but just in-case, I've decided to ask the forums. In this Asteroids game, the enemy bullets are supposed to go to the enemy clones and shoot at you once you spawn in. However, it sticks around on the original non-clone and fires nonstop.

Project: https://scratch.mit.edu/projects/735053035/
deck26
Scratcher
1000+ posts

Cloned bullets go to the original non-clone

Mke the bullets clones of the same sprite as the enemy. See https://scratch.mit.edu/projects/111228685 method 2. Otherwise you're going to have to do something like storing x and y in lists.
msztr
Scratcher
100+ posts

Cloned bullets go to the original non-clone

If you want to make bullets in the ENEMY sprite, do this

(the variables are ‘For all sprites’)

…and do this in the ENEMY BULLET sprite:


I hope I helped. - msztr
plasmaticatt
New Scratcher
14 posts

Cloned bullets go to the original non-clone

Thanks for the help! Although; I do have one more question: How do I make it stop firing once the enemy clone has been deleted?

Powered by DjangoBB