Thread: a junk game
View Single Post
Old
Dameria
Senior Member
 
Dameria's Avatar
 
Status: Offline
Posts: 978
Join Date: Sep 2009
Location: United States
Default 11-27-2012, 09:15 AM

Quote:
Originally Posted by fieldhchick14 View Post
How can i get the yellow to turn red when its full?
Have you tried putting "playerScore set color to (red)" after the while loop in "my first method"? So basically after the cylinder is above the ground, it will stop popping moles up and it will then run the code to turn the cylinder red.

Also, there is an error that occurs occasionally during the game. It's because your "Moles" array does has two "null" objects. You can't pass a null object into your method and expect it to do actions, it won't work. You should put all the null objects to the bottom of the list and then remove them. Also, you're missing a 12th mole. After you fix all this it should work.


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

Last edited by Dameria; 11-27-2012 at 09:44 AM.
   
Reply With Quote