Location: JBPLAY \ Meteor 2 \ Error Reporting \ Opening Doors Bounding Problem Back to Threads |
Zable Fahr
![]() Joined: 04 November 2004 Posts: 74 |
07 November 2004 21:45 (UK time)
Whenever the player wields a weapon, it looks like the weapon sprite is added to the player's bounding box for collision detection, but not collision detection with doors. The net result is that the player will occasionally walk head on into a door, but the door will not open. The temporary solution is to orient the player so that the player sprite (and not the weapon sprite) directly touches the door. At first I thought this problem was because I placed a door sector on top of a wall sector, but it still seems to be happening even if there isn't a wall under it. I can't seem to isolate which doors cause this bug; sometimes a particular door will open fine; sometimes another door will have trouble opening if you're the player is wielding a weapon. If you want, I could email the map I'm working on that demonstrates (at least on my computer) the problem. You need to login to create posts in this thread. |
James Bunting
Posts: 1308 |
07 November 2004 22:39 (UK time)
The problem is actually caused by the location of the player and the door. If the player is at X 10 and the Door at X 12 and the player moves 3 pixels at a time then there is a problem. The code is supposed to look for stuff like this but it has a few imperfections. You can mail me the map if you like (grab my address at www.jbgames.com). You need to login to create posts in this thread. |
|
Forums system (C) 1999-2023 by James Bunting.
Terms of Use