Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   How do I...? (http://www.alice.org/community/forumdisplay.php?f=16)
-   -   how do i have evant specfic impace detection (http://www.alice.org/community/showthread.php?t=1387)

student 05-06-2008 10:06 AM

how do i have evant specfic impace detection
 
I am making a simple game where a ninja fights zombies. I am having trouble coding the ninja attacks. What I have so far is an invisible object that moves out of the ninja when he attacks. but it is not working the code that triggers the zombies death sequence is only sporadically detecting the impact and not only that but because I want the ninja to be damaged if the zombie touches it without being hit I need some way to differentiate between when the attack object is in the ninja and when the ninja is actually attacking

DickBaldwin 05-06-2008 11:05 AM

[quote=student;5426]I am making a simple game where a ninja fights zombies. I am having trouble coding the ninja attacks. What I have so far is an invisible object that moves out of the ninja when he attacks. but it is not working the code that triggers the zombies death sequence is only sporadically detecting the impact and not only that but because I want the ninja to be damaged if the zombie touches it without being hit I need some way to differentiate between when the attack object is in the ninja and when the ninja is actually attacking[/quote]

I believe that you may want to go to Google and search for the following:

collision site:[url]www.alice.org[/url]

I hope that you find what you need there.

Dick Baldwin
Free Alice tutorials: [url]http://www.dickbaldwin.com/tocalice.htm[/url]
Free programming tutorials: [url]http://www.dickbaldwin.com/toc.htm[/url]


All times are GMT -5. The time now is 03:54 PM.

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