scripted bridges

Started by Poe, June 04, 2012, 09:32:03 am

Previous topic - Next topic

Poe

i'm entertaining the idea for a bridge that must do these things:

* not only player can use but any characters.
* characters can go under it, over it, and stand still on top of it (so it can't be just auto move over it to the next area).

though i'm not really sure where to begin with this. if i think about how passability is handled, that leads me to making seperate tables for anything on a bridge and flipping the character into "bridge mode" when walking onto it. but i may be overcomplicating things, i'm really looking for some insight from someone with experience in bridge stuff.

Poe

really, no one? well turns out it wasn't that hard once i got started.

if anyone's interested:
i used terrain tags for setting a bridge, then made Game_Character's and Game_Map's passable methods check only the 3rd layer if on a bridge (which makes it the bridge layer i guess) and otherwise ignore the 3rd layer's passabilities, and Sprite_Character z + 100 if on a bridge. i'll probably expand on that to have a seperate passability table for bridges/layered floors cos xp has got little enough layers as it is.

not for everyone but it might give someone an idea if they're looking.