View Single Post
Old
Dameria
Senior Member
 
Dameria's Avatar
 
Status: Offline
Posts: 976
Join Date: Sep 2009
Location: United States
Default 09-28-2010, 07:40 PM

I tried to fix it but it just got messed up, so I gave up. Right now, it will check to see if the other dinosaur is near the TRex even when it is dead, maybe you could make a boolean called "isAlive" set to true, and when it gets eaten you change to false. Then put "isAlive" in the parameter of the While statement. Then in the method to turn the dinosaur you can put a method to move the other dinosaur 1 meter forward every 0.5 second (style abruptly) after you turn the dinosaur away from the TRex, this will cause a running away effect. I tried to make it more complicated but things started to mess up, so tell me if what I have just said works at least.


Check out my best projects so far and please comment:

Tic-Tac-Toe 2.0 ................... http://www.alice.org/community/showthread.php?t=3548
Alice Paint ........................... http://www.alice.org/community/showthread.php?p=23408
Real-Time Clock .................. http://www.alice.org/community/showthread.php?p=12725
Maze Game ......................... http://www.alice.org/community/showthread.php?t=4301
   
Reply With Quote