The Daily Click ::. Forums ::. Klik Coding Help ::. Floors
 

Post Reply  Post Oekaki 
 

Posted By Message

Nuklear41

Possibly Insane

Registered
  12/01/2008
Points
  2395

VIP MemberPS3 OwnerWii Owner
23rd February, 2005 at 21:47:48 -

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?

 
Image

AsparagusTrevor

Mine's a pint of the black stuff

Registered
  20/08/2002
Points
  2364

Game of the Week WinnerHas Donated, Thank You!VIP MemberEvil kliker
23rd February, 2005 at 22:06:32 -

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.

 
Image

DaVince

This fool just HAD to have a custom rating

Registered
  04/09/2004
Points
  7998

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
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.

Image Edited by the Author.

 
Old member (~2004-2007).

Nuklear41

Possibly Insane

Registered
  12/01/2008
Points
  2395

VIP MemberPS3 OwnerWii Owner
24th February, 2005 at 17:32:13 -

I tryed that way it did not work. I think I will just have to fake it for this time.

 
Image

DaVince

This fool just HAD to have a custom rating

Registered
  04/09/2004
Points
  7998

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
25th February, 2005 at 09:08:26 -

Hmm it should work...
strange.

 
Old member (~2004-2007).

Zane



Registered
  09/09/2003
Points
  1183
25th February, 2005 at 09:46:53 -

OR
when player collisdes with stares -> go to level #.
And the level you goto is the upstares

 
www.klikforever.co.uk
GO THERE!!!

AsparagusTrevor

Mine's a pint of the black stuff

Registered
  20/08/2002
Points
  2364

Game of the Week WinnerHas Donated, Thank You!VIP MemberEvil kliker
25th February, 2005 at 20:30:01 -

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.

 
Image

HarryHatMan



Registered
  04/09/2004
Points
  4
27th February, 2005 at 00:17:23 -

Yeah, i spent ages trying to make a multi-leveled dungeon for an early Zelda game i did and did it Asparagus's way

 
n/a
   

Post Reply



 



Advertisement

Worth A Click