#5025 - sgeos - Thu Apr 17, 2003 10:11 pm
Some games allow player characters (PCs) to walk over and under objects, such as a bridge. PCs can walk from one shore, over the bridge, to the other shore. PCs can also walk through the stream, and under the bridge to the other side, and then keep going. (PCs can also climb in and out of the stream using a ladder.) What kind of design does one need in order to achieve this?
My best guess is that two (or more, depending) hardness maps and an elevation variable are needed. When walking off the ladder in the example above, the elevation would be set based on the direction of exit.
As far as the display goes, I imagine that it is just a matter setting sprite display priority and elevation at the same time.
What is a better approach?
-Brendan
My best guess is that two (or more, depending) hardness maps and an elevation variable are needed. When walking off the ladder in the example above, the elevation would be set based on the direction of exit.
As far as the display goes, I imagine that it is just a matter setting sprite display priority and elevation at the same time.
What is a better approach?
-Brendan