Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   How do I...? (http://www.alice.org/community/forumdisplay.php?f=16)
-   -   space invaders shooting and death (http://www.alice.org/community/showthread.php?t=8635)

kabbott 06-05-2012 10:51 AM

space invaders shooting and death
 
i am making a video game on alice called space invaders and i am having trouble trying to figure out how to make them die randomly and i am also having troble trying to make the enemy ships shoot and the players ship to shoot

dakota95 06-20-2012 07:57 PM

[QUOTE=kabbott;49283]i am making a video game on alice called space invaders and i am having trouble trying to figure out how to make them die randomly and i am also having troble trying to make the enemy ships shoot and the players ship to shoot[/QUOTE]

JUst have it pick random numbers between 1 and 10. Then make a function: When #variable=3(any number between 1 and 10) make guy die. Then assign a number between 1 and 10 to each object that you want to die.


All times are GMT -5. The time now is 03:55 AM.

Copyright ©2022, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.