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

#1 2011-10-17 22:03:20

edolloff
New Scratcher
Registered: 2011-10-17
Posts: 3

Help!

Does anyone know how to go about making a part in our game too make it so if you solve a math problem you will get ammo for your gun? any help would be great!
heres the link to the game http://scratch.mit.edu/projects/edolloff/2089517

Offline

 

#2 2011-10-17 22:38:46

BlueHeavy
New Scratcher
Registered: 2011-10-17
Posts: 15

Re: Help!

I always have problem with this concept! Heavy is always running out of ammo! RED scout is too fast to catch with 1 clip!

Offline

 

#3 2011-10-18 00:07:18

Fordark
Scratcher
Registered: 2010-08-02
Posts: 100+

Re: Help!

Have you turned the number of bullets into a variable? if so, you should be able to control the number of bullets in your scripts and add into the number of bullets when you solve a math problem (and subtract when you shoot)


http://dl.dropbox.com/u/34855482/Fordarksig.png

Offline

 

#4 2011-10-18 07:42:54

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: Help!

There is an "ask ____ and wait" block specifically for getting an answer from the user.  Their answer goes in the variable-looking, but blue, block called "answer"


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

Board footer