PDA

View Full Version : Hit test problem


spriggan
03-31-2003, 09:57 PM
i'm pretty sure that it's something realy simple like a line that I left out but I just can't seam to figure out why it's not working.
Basicaly it's a frogger game, well its going to be a sloth, and the problem i've got is that the water hit test isn't working. The sloth is suppose to die when it hits the water.

P.S. i know i need to seperate it on different timelines.;) I was just working on the base game engine first. I'm also planning on moving all the tweened stuff with actionscript. But if anyone has any ideas on how to make the sloth stay on the log as it moves then appear on the other side as it does i'd appreceate any advice.:D

Billy T
04-01-2003, 12:51 AM
was a keyframe problem

see attached

cheers

spriggan
04-01-2003, 01:39 PM
Thanks a lot Billy

spriggan
04-01-2003, 03:48 PM
Hum ok now i've got another problem with the water but this time it's with the logs on the water. I assumed that if something was on a higher layer it would coverup the other item so the hit test wouldn't happen. But that dosen't seam to be the case. Any way to check
if hitting this item and not hiting this item then do...
or if anyone has any idea on how to get around this problem.

Billy T
04-01-2003, 09:12 PM
if its hitting log
do some stuff
otherwise check to see if its hitting the water

if its touching the log then it doesnt check the water

cheers

spriggan
04-01-2003, 09:39 PM
oh ya..duh sometimes I try to over complacte things. hehe thanks again.