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

#1 2009-12-08 17:39:32

Scratch_OSX
Scratcher
Registered: 2009-12-05
Posts: 100+

Could someone help me with a new project?

I am working on a FPS type game,

I need it so that when Ammo [variable] = 0, the gun stops firing.

Here are my scripts:

For the gun:
http://i48.tinypic.com/15chklc.gif

For the shot:
http://i45.tinypic.com/155qek9.gif


--Scratch_OSX

Offline

 

#2 2009-12-08 18:12:01

Kileymeister
Scratcher
Registered: 2008-04-17
Posts: 1000+

Re: Could someone help me with a new project?

Ok, I would do this:
http://i46.tinypic.com/2rmwf9c.gif
To explain, I basically put all of your scripts together (much less messy) and added a bit of stuff to it.  You don;t really need the second script that shouts "You need to reload!" I just put that in for fun  tongue   And.. that should do it


I'm back, and showcasing two new* projects!  Click left or right on the image below to see!
http://img109.imageshack.us/img109/7905/part1l.pnghttp://img859.imageshack.us/img859/6417/part2bf.png

Offline

 

#3 2009-12-08 18:23:29

RHY3756547
Scratcher
Registered: 2009-08-15
Posts: 1000+

Re: Could someone help me with a new project?

Or maybe you could just put the gun firing in an If block with the statement (not (Ammo < 1))

Offline

 

Board footer