PDA

View Full Version : urgent help needed: how to make this???


christina89
09-06-2008, 01:17 PM
hihi~
i'm doing a GAME using alice.. i need help...
i am trying to make a game where a man must avoid walking zombies in order to get to the destination and win. However, i don't know why even when i set all the conditions, the zombie will just pass through the man and the game don't end.

here's my file.
839
Please help me!:D thanks. (my GAME is due this coming week!):eek:

Digimath
09-06-2008, 02:13 PM
Your program has one infinity loop inside of another infinity loop. If you were to put a "Print Hello World" right after the first infinity loop (the one under the Zombie hit Man = Lose" comment), how any Hello World’s would get printed?

christina89
09-06-2008, 11:02 PM
yo:)
thanks for your help. But i don't quite understand... so what should i do now instead? what should i take out/replace/add?

thanks

Digimath
09-07-2008, 06:16 AM
Perhaps you want that long cowboy/zombie if statement to be done each time the zombie takes a step. And do you want the zombie to walk forever or just while some variable like "man is in trouble" is false?