Alice Community

Alice Community (
-   How do I...? (
-   -   collision detection[zombie game] (

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 :(


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 04:05 AM.

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