Let’s Make a Level for Duke Nukem 3D, Part 22

Image for post
Image for post
source

Previous parts: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21

Last time, we made it so the player can take an elevator up from the inside of the landed spaceship to the outside. Now, we’re going to make it so that when the level begins, the spaceship comes in for a landing.

As you can see, to make my job easier I’ve deleted the half of the replica landing zone area that the player cannot see out the cockpit windows. Since there’s an elevator inside the ship, it isn’t practical to make the entire ship lower down into place. Instead, I have to make the entire room raise up into place from below the ship.

That’s tricky with sloped sectors. You have to place the Sector Effector sprite with LoTag of 31 (floor move) at the height of the first wall of the sloped sector (the “hinge” it slopes from) and that’s the height the entire sector will move to.

This is what the floors look like, lowered into their starting positions. The ceilings will have to be moved as well, with their own Sector Effectors for moving them into place. But first let’s add some Activator sprites and make sure the moving floors work.

…That’s not quite right. The entire room moves into place properly except for one sector. Upon checking it out in the grid view, it’s because I forgot to give that SE sprite a LoTag of 32. With that fixed, it works perfectly:

Sorry I don’t know how to make gifs of webms, but you’ll see the effect in action when you play the map. However right now, the descent is smooth and silent. That’s not right for a spaceship landing. We need the earthquake effect to make the screen shake around, and a rumbling noise.

However, that will have to wait for the next installment. :)

Stay Tuned for Part 23!

Written by

I post text here, often accompanied by images and sometimes video. People then clap or don't depending on whether they enjoy what I posted.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store