Forum

> > CS2D > General > how to make a different floor and stairs ?
Forums overviewCS2D overviewGeneral overviewLog in to reply

English how to make a different floor and stairs ?

6 replies
To the start Previous 1 Next To the start

old how to make a different floor and stairs ?

quickfingers
COMMUNITY BANNED Off Offline

Quote
how to make a different floor and stairs ? i want to create a another walkable area just above ground and a stairs connecting it. could this happen ? if so i am adding this to my map .

old Re: how to make a different floor and stairs ?

TimeQuesT
User Off Offline

Quote
Unfortunately it's impossible without lua. I once wrote a method for single player only, which worked pretty well, but in multiplayer it would 'be laggy'.

I just checked from which side the player entered a tile (cs2d lua hook move). Then sending him back (cs2d cmd setpos | Track last position inside a variable). Optionally you can simulate the height difference by using cs2d lua cmd image.

- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Also with lua it's pain in the ass and just ugly.

old Re: how to make a different floor and stairs ?

TimeQuesT
User Off Offline

Quote
user Pseudon has written
Since is 2D itspretty much impossible even with lua, isn't it?


Well. DC could make a layering system (which is pretty much efford since the game was actually not designed for it)

Just an array of maps. that will be rendered on each other. Stepping on a tile could move the player towards the next map in the layer list. 'View-Depth' can be done by adding shading with images.

There're even more methods doing this with lua, but I can ensure you that it will be much work and always looks ugly.
For example >
edited 1×, last 12.12.14 09:10:13 pm

old Re: how to make a different floor and stairs ?

Pseudon
User Off Offline

Quote
@user TimeQuesT: here is one of the problems I was thinking, what if there are 2 players, one above the other one, who will get shot and why? And what if a floor 1 player attacks a floor 2 player, would mostly look horrible... Old teleporting way is the best...
To the start Previous 1 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview