Discuss Scratch

jogany
New Scratcher
6 posts

How do I make a Shooting AI?

So imma trying to make an enemy that shoots bullets toward the good guy, how do I do this?


I'm also trying to make the good guy shoot bullets too, that kill the enemy. How do I do that?
Viperstryke
Scratcher
18 posts

How do I make a Shooting AI?

OK, there are a couple ways to do this. Have you used clones before?
Viperstryke
Scratcher
18 posts

How do I make a Shooting AI?

https://scratch.mit.edu/projects/210847403/ in this game I basically had a sprite go through all the costumes of shooting and always pointing at the player. It would reset when it hit the ground or player.
mstone326
Scratcher
1000+ posts

How do I make a Shooting AI?

When should your bad guy shoot? I would think using the distance block from the sensing category would help.

Bad Guy
waituntildistancetogood guy<150pointtowardsgood guybroadcastshootandwait
jogany
New Scratcher
6 posts

How do I make a Shooting AI?

Viperstryke wrote:

OK, there are a couple ways to do this. Have you used clones before?

Not really, no. How would I go around doing so?
jogany
New Scratcher
6 posts

How do I make a Shooting AI?

Viperstryke wrote:

https://scratch.mit.edu/projects/210847403/ in this game I basically had a sprite go through all the costumes of shooting and always pointing at the player. It would reset when it hit the ground or player.
Oh okay.
jogany
New Scratcher
6 posts

How do I make a Shooting AI?

mstone326 wrote:

When should your bad guy shoot? I would think using the distance block from the sensing category would help.

Bad Guy
waituntildistancetogood guy<150pointtowardsgood guybroadcastshootandwait
Yeah, I think that'd be good.
JKstudios123
Scratcher
2 posts

How do I make a Shooting AI?

how do you make different clones of an A.I shoot.I just can't get the bullet to go to the a.i
ChickenNugget_Pro
Scratcher
1 post

How do I make a Shooting AI?

idk
VAYRONXZ77
Scratcher
12 posts

How do I make a Shooting AI?

JKstudios123 wrote:

how do you make different clones of an A.I shoot.I just can't get the bullet to go to the a.i
well you need to make a sprite that looks like a bullet, then depending on the sort of game you are making, I will help if you tell me what kind of game it is.
VAYRONXZ77
Scratcher
12 posts

How do I make a Shooting AI?

I code games, I am making a game called Phantom runner
spread the word of my game, it is currently in sneak peek version.
schafezr0000
Scratcher
5 posts

How do I make a Shooting AI?

How do you make an ai the attacks you and tries to follow you in x,y scroller using variables?

Last edited by schafezr0000 (June 21, 2020 17:01:15)

joshuaho
Scratcher
1000+ posts

How do I make a Shooting AI?

Hey folks, please feel free to make a new topic if you have a new question related to scripting. That makes it easier to find, compared to posting on an separate (outdated) thread.

Last edited by joshuaho (June 21, 2020 19:08:56)

Powered by DjangoBB