In my game (top down shooter) There is a part where you have to go up stairs to get on the top floor. But if you dont go up the stairs and pass right buy them you go under neith the part that you walk on on the top floor. How do I get that to work?
I'd just fake it, it'd be a hell of a lot easier. For example, make upstairs and downstairs two separate parts of the play area, then have it so when the bloke walks up the stairs, it transports him to the upstairs section of the level. And when he walks back down, he's teleported back to the other part of the level. It would be very hard/and or slow to make it one seemless transition.
DaVince This fool just HAD to have a custom rating
Registered 04/09/2004
Points 7998
24th February, 2005 at 01:50:37 -
When user collides with stairs: toggle a flag and warp to a place that's not some stairs (like behind them).
When flag is on: set player to front.
When flag is off: set player to back.
For enemies and bullets:
When bullet/enemy/ammo overlaps player + item's flag is on + player's flag is on: Do something.
When bullet/enemy/ammo overlaps player + all flags are off, do the same.
This way only the top-floor enemies will hit the player if he's top-floor too, the same with the bottom floor.
That's kinda like my way, but with mine the enemies and shit will stay in the previous position. I actually the method I menitoned it for my Zombies Now game and it works great, I even got zombies to follow you upstairs. Nuklear, you should just fake it like I said dude, it looks fine and it makes programming a whole lot easier.