Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Thread Tools Display Modes
collision detection[zombie game]
Posts: n/a
Exclamation collision detection[zombie game] - 05-31-2011, 07:45 AM

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

Attached Files
File Type: a2w game.a2w (1.72 MB, 26 views)
Reply With Quote
Senior Member
TauTrumpsPi's Avatar
Status: Offline
Posts: 399
Join Date: Mar 2011
Location: The diamond layer
Default 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.

I have plenty of common sense. I just choose to ignore it.
-Calvin and Hobbes

Wondering about my Avatar?

Wondering about my username?
Reply With Quote

assistance, collision, detection, zombie

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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