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

#1 2010-09-12 21:31:55

bebyb
New Scratcher
Registered: 2010-09-12
Posts: 18

How to make a basic shooting game?

I was wondering how to make a shooting game. How do you make the bullet sprite be able to be used more than once. How do you make the target animation work when the bullet sprite hits the target sprite?

Offline

 

#2 2010-09-12 21:39:41

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: How to make a basic shooting game?

Great question!  smile

Here are the basic scripts for that:

bullet:
http://img227.imageshack.us/img227/6149/bulletc.gif

target:
http://img20.imageshack.us/img20/8366/shooter.gif
(that is assuming that the target has 3 animation frames)

Hope this helps!


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#3 2010-09-12 21:53:19

bbbeb
Scratcher
Registered: 2009-06-11
Posts: 1000+

Re: How to make a basic shooting game?

Adding on to ScratchReallyRocks's suggestion, add a wait until touching <target> and after that, add a [go to [gun]]  big_smile


Back in my day.... there were no laws that censored the internet... now, there are.... nah.

Offline

 

#4 2010-09-12 21:54:29

bebyb
New Scratcher
Registered: 2010-09-12
Posts: 18

Re: How to make a basic shooting game?

Thanks! I'll try that.

Offline

 

#5 2010-09-12 22:04:32

bebyb
New Scratcher
Registered: 2010-09-12
Posts: 18

Re: How to make a basic shooting game?

Also how do I make the bullet suddenly appear when the "fire" button is pressed?

Offline

 

#6 2010-09-16 05:12:59

SamSamson
New Scratcher
Registered: 2010-09-01
Posts: 42

Re: How to make a basic shooting game?

Thanks!

Offline

 

Board footer