PDA

View Full Version : counting


mememe
09-27-2006, 12:14 PM
How do I get my program to add for more than one object doing something determined by a random number? and for it to print this information? If someone could give me even a hint.....I've been working on this for a week now and haven't figured it out yet. Thanks

Mr Nemo
09-27-2006, 08:46 PM
Let me get this straight- each time a character in your world performs any action, you want to increase a variable?:confused:

mememe
09-27-2006, 09:22 PM
what I need is something to keep count of my characters jumps. Hope that helps :confused: Me

Mr Nemo
09-27-2006, 10:01 PM
OK. You'll need a world-level number variable. Whenever one of your characters jumps, use something like the following code:
Do together[
(person)Jump
(world.var) == ((world.var) + 1)
]
Hope that's what you're trying to do.;)

mememe
09-28-2006, 08:18 AM
Thank you very much....I try that one. :) :) Me

I had tryed to use that before.......so I made a varible for each character and it now works! Thanks again