Advertisement

Entering buildings

Started by February 24, 2000 09:20 AM
11 comments, last by Gefilus 24 years, 9 months ago
How about using sprites to simulate the parts of the doorway that are to appear "on top of" the character sprite entering the building? Just a thought.
Amazon babes are cool.
Is your game real-time or turn-based? If it''s turn based that invisible tigger tactic works well, but I wouldn''t trust that in RT because some times stupid NPC get gaught on that, well it depends how you make it, but try do it so that it doesn''t bug. I''ve seen games where NPC got stuck between doors and PC.
Advertisement
well, in baldur's gate, the characters were transported to a different level when they went through a doorway. but if its just moving behind stuff you're wondering about, you could add an origin to your character struct. the origin is in the BASE of the character, not the center of the bitmap of the character. then each object on your screen has an invisible rectangle around its base. then you just check to see if the character's origin is behind or in front of the rectangle and if its behind, you blit the object in front of the character. ugh, i don't think i explained that very well...


_________________Gecko___
Gecko Design

Edited by - Gecko on 3/1/00 11:54:43 PM

_________________Gecko___Gecko Design

This topic is closed to new replies.

Advertisement