Floating creatures

Questions about how to create your own dungeons and replacement graphics and sounds.

Moderator: George Gilbert

Forum rules
Please read the Forum rules and policies before posting.
Post Reply
User avatar
lbk
Craftsman
Posts: 125
Joined: Tue Feb 16, 2010 1:58 am
Location: USA

Floating creatures

Post by lbk »

I have an item that will create a hole when it is broken. My problem occurs when a creature is on a tile and the hole is created on that same tile. The creature will just float over the hole, until they move off of that tile, then they will avoid that tile (like they would with a regular hole). I am wondering if there is a problem with creating a hole on a tile that already has an object on it? (Note that I am not opening up an already existing hole, but rather creating the hole) Any insight is appreciated, thanks!
User avatar
Gambit37
Should eat more pies
Posts: 13715
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Re: Floating creatures

Post by Gambit37 »

I guess it's an engine problem with the order and frequency with which objects collisions are checked. I doubt you'll be able to get around this: I think you'd need George to change it in the core code.
User avatar
lbk
Craftsman
Posts: 125
Joined: Tue Feb 16, 2010 1:58 am
Location: USA

Re: Floating creatures

Post by lbk »

Thanks for the response, I figured it might have been something like that.

I was able to solve my problem by cloning the pit to make it unique, then toggling the pit on and off quickly once it had been "created". This seems to work for all applications so far.
User avatar
Gambit37
Should eat more pies
Posts: 13715
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Re: Floating creatures

Post by Gambit37 »

Good idea, nice work around! ;-)
Post Reply