Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   How do I...? (http://www.alice.org/community/forumdisplay.php?f=16)
-   -   collision detection[zombie game] (http://www.alice.org/community/showthread.php?t=6666)

jac 05-31-2011 07:45 AM

collision detection[zombie game]
 
1 Attachment(s)
hey all, ive been trying to program a game which involves the player moving the camera as they attack three zombies with a pool cue however when i press the pool cue attack button the zombie just continues moving as it is meant to. any help would be appreciated, only have two weeks left to complete this :(

cheers,
Jac

TauTrumpsPi 05-31-2011 01:32 PM

Your collision method is not called within the world, so you can't make them move backward even if you are that close to them. Unless you meant the collision method to be within the movement method, in which .05 meters is probably too little to be called. Try increasing the distance. Also, once you move away from them, they are going to start moving again, so you are goin to need to find a way, probably using a while statement, to make them stop moving permanently once the poker hits them.


All times are GMT -5. The time now is 08:11 PM.

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