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

#1 2010-05-19 20:19:38

adiguy17
Scratcher
Registered: 2010-05-04
Posts: 17

Shooting Trouble

I made a game where a sprite shoots a bullet. I made the sprite shoot when I press the space bar but if I hold for 0.5 of a sec longer than it should be, it shoots out too many bullets and it messes with my ammo variable. Help Please!!!☺☻☺☻

Offline

 

#2 2010-05-19 20:34:31

12three
Scratcher
Registered: 2008-06-12
Posts: 1000+

Re: Shooting Trouble

Try to build off of this.
http://scratch.mit.edu/projects/12three/393354
Hope I could help.  smile

Offline

 

#3 2010-05-19 20:49:55

adiguy17
Scratcher
Registered: 2010-05-04
Posts: 17

Re: Shooting Trouble

Thank You but it won't work because my sprite doesn't rotate.

Offline

 

#4 2010-05-19 21:25:06

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Shooting Trouble

You mean you don't want it to rotate?

Offline

 

#5 2010-05-19 21:45:14

PlayWithFire
Scratcher
Registered: 2010-01-20
Posts: 1000+

Re: Shooting Trouble

try putting a [wait 0.1 seconds] block in after the block that senses that you've pressed the space bar.  for example

when space key pressed
wait 0.1 seconds
(other scripts)

that should work.


http://scratch.mit.edu/static/projects/PlayWithFire/1610180_sm.png
Check out the DG Games Website For the latest news on games like Infected

Offline

 

#6 2010-05-20 05:10:56

12three
Scratcher
Registered: 2008-06-12
Posts: 1000+

Re: Shooting Trouble

adiguy17 wrote:

Thank You but it won't work because my sprite doesn't rotate.

Okay. Can you show me what you have by uploading it? I'd be able to help you more easily.  smile

Offline

 

#7 2010-05-20 19:05:21

adiguy17
Scratcher
Registered: 2010-05-04
Posts: 17

Re: Shooting Trouble

Okay, here it is.
http://scratch.mit.edu/projects/adiguy17/1064612

Offline

 

Board footer