The Daily Click ::. Forums ::. Klik Coding Help ::. detector objects in fastloops
 

Post Reply  Post Oekaki 
 

Posted By Message

Don Luciano

Heavy combat pancake

Registered
  25/10/2006
Points
  380

VIP Member
25th September, 2009 at 01:22:47 -

http://www.mediafire.com/?mloazwojmcm

Here you go... if that what you wanted.
You should probably adjust the detetcor

Edited by Don Luciano

 
Code me a sausage!

Don Luciano

Heavy combat pancake

Registered
  25/10/2006
Points
  380

VIP Member
25th September, 2009 at 01:32:19 -

Originally Posted by Rick Shaw
no, the player should be visible behind the wall... but if he's above the wall, he's behind it. otherwise he's in front of it.</quote

You mean he should be invisible when in the wall?

 
Code me a sausage!

Rick Shaw



Registered
  30/04/2008
Points
  158
25th September, 2009 at 01:53:22 -

ah, well, it doesn't matter what happens to him in the wall, since he'll never get there in-game. Though I suppose he should be behind it.

I took a look at your version. Notice that the detector object is still detecting collisions based on the normal wall directio and not the footprint- this is what I'm trying to fix.

I could just move the detector to the top of the player's head, but that wouldn't work for objects like low fences or boxes, or with some windows, etc. Really, if I can check to see if the player's body is overlapping the wall's footprint, then I know he should be in front of the wall. That's what I'm trying to accomplish...

 
n/a

Don Luciano

Heavy combat pancake

Registered
  25/10/2006
Points
  380

VIP Member
25th September, 2009 at 02:00:50 -

Oh sorry, u have to switch condition from

detecotor overlaps wall to:

wall overlaps detector

then it works properly

because when u condition detector it picks any wall to compare it with if any overlaps.
This way it compares each wall to the detector

Edited by Don Luciano

 
Code me a sausage!

Rick Shaw



Registered
  30/04/2008
Points
  158
25th September, 2009 at 02:04:32 -

oh my god. that does it. that's the trick. i can't believe this! i've been trying to stamp out this bug for weeks!!!

 
n/a

Don Luciano

Heavy combat pancake

Registered
  25/10/2006
Points
  380

VIP Member
25th September, 2009 at 02:05:52 -

Yeah, its always something simple...
But it takes ages to find.

Thanks for the trophy

Edited by Don Luciano

 
Code me a sausage!
   

Post Reply



 



Advertisement

Worth A Click