This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-12-20 17:12:34

MarkWilson123
New Scratcher
Registered: 2012-11-28
Posts: 8

How to make enemies shoot?

Need help again.

I want a particular kind of enemy I'm making to have the ability to shoot at the player. I can make my playable character shoot a bullet just fine since she's in control but what about the enemies? Please help, thanks.

Offline

 

#2 2012-12-20 18:05:02

mrn0body
Scratcher
Registered: 2012-12-11
Posts: 37

Re: How to make enemies shoot?

Instead of having press this to shoot make it shoot every 4 seconds


Why Fit In When You Were Born To Stand Out

Offline

 

#3 2012-12-22 13:24:26

kelton8or
New Scratcher
Registered: 2012-05-13
Posts: 5

Re: How to make enemies shoot?

im not good with scratchblocks so i hope this comes out right

[scratchblocks]
when gf clicked
hide sprite <bullet>
wait 4 sec sprite <bullet>point to sprite <player>
repeat 20 wait <0.2 sec> move 10 steps set custom sprite center at gunpoint
if sprite bullet is touching sprite player change variable health by -10

Offline

 

#4 2012-12-22 13:29:08

kelton8or
New Scratcher
Registered: 2012-05-13
Posts: 5

Re: How to make enemies shoot?

im not good with scratchblocks so i hope this comes out right

when gf clicked
hide sprite <bullet>
wait 4 sec sprite <bullet>point to sprite <player>
repeat 20 wait <0.2 sec> move 10 steps set custom sprite center at gunpoint
if sprite bullet is touching sprite player change variable health by -10
end

Offline

 

Board footer