Discuss Scratch

mr_krupp
Scratcher
9 posts

How do I make clones shoot guns?

So, I'm making a top down shooter game, and at first the horde of baddies will just shamble towards you, but eventually some of them will have guns. How do I make multiple of these guys shoot at the same time or at different intervals. I'd appreciate it if the answer wasn't more sprites.
memanuelhe
Scratcher
100+ posts

How do I make clones shoot guns?

What I would do is make a list if all the shots locations and direction. Then use the bullet sprite to create clones at the locations and look in the direction their supposed to and when the code will run again, make sure to delete the clones first. If you didn't understand, then I can help you further, just comment so you will get my attention.
mr_krupp
Scratcher
9 posts

How do I make clones shoot guns?

memanuelhe wrote:

What I would do is make a list if all the shots locations and direction. Then use the bullet sprite to create clones at the locations and look in the direction their supposed to and when the code will run again, make sure to delete the clones first. If you didn't understand, then I can help you further, just comment so you will get my attention.
Yeah I don't understand that well lol.
memanuelhe
Scratcher
100+ posts

How do I make clones shoot guns?

Here:

https://scratch.mit.edu/projects/461507053/

Made this easy script for you, if you can't understand it, then I can go deeply through it.
mr_krupp
Scratcher
9 posts

How do I make clones shoot guns?

memanuelhe wrote:

Here:

https://scratch.mit.edu/projects/461507053/

Made this easy script for you, if you can't understand it, then I can go deeply through it.
I think I understand! I will definitely credit you. Your a lifesaver!

Powered by DjangoBB