Discuss Scratch

40PMCool
Scratcher
3 posts

how to make a sprite shoot bullets?

I’m making a game called https://scratch.mit.edu/projects/570025676 and I made a bot that follows the main character. And I need the bot to shoot the zombies. Any ideas? You can remix the game so I can copy the script or show me the script to making a bot shoot. Thanks!
HyacinthoDani
Scratcher
47 posts

how to make a sprite shoot bullets?

when green flag clicked
forever
if <key [space] pressed?> then
create clone of [BULLET]
end
end

when I start as a clone
point towards [PLAYER]
repeat until <touching [edge] ?>
move (23) steps
end
delete this clone

Last edited by HyacinthoDani (Sept. 15, 2021 12:58:53)

HyacinthoDani
Scratcher
47 posts

how to make a sprite shoot bullets?

dont do point towards player do
point in direction ([direction] of [player])
Shakeb_M
Scratcher
12 posts

how to make a sprite shoot bullets?

i might make a remix of your projects w/ bug fixes and more features, but will credit you, is this okay?
40PMCool
Scratcher
3 posts

how to make a sprite shoot bullets?

Shakeb_M wrote:

i might make a remix of your projects w/ bug fixes and more features, but will credit you, is this okay?



sure you can remix it because I would love people to help me
40PMCool
Scratcher
3 posts

how to make a sprite shoot bullets?

HyacinthoDani wrote:

dont do point towards player do
point in direction ([direction] of [player])

Do you know how to make a bot team up with you and shoot the zombies? If you can I really appreciate it
Xolay
Scratcher
1000+ posts

how to make a sprite shoot bullets?

40PMCool wrote:

HyacinthoDani wrote:

dont do point towards player do
point in direction ([direction] of [player])

Do you know how to make a bot team up with you and shoot the zombies? If you can I really appreciate it
Hello! Please do your own topic if you want to request anything, not just on other Scratchers topics.

Last edited by Xolay (Sept. 16, 2021 00:27:17)

HyacinthoDani
Scratcher
47 posts

how to make a sprite shoot bullets?

40PMCool wrote:

HyacinthoDani wrote:

dont do point towards player do
point in direction ([direction] of [player])

Do you know how to make a bot team up with you and shoot the zombies? If you can I really appreciate it

Maybe… ill try to remix your game. and make it.

Last edited by HyacinthoDani (Sept. 16, 2021 10:02:42)

Powered by DjangoBB