Creating Multiple Rooms and stitching them together
Creating Multiple rooms is not a difficult process but there are some new concepts that you have to grasp and there is one very important rule of thumb you absolutely need to know.
First of all: The rule of thumb you need to know: Avoid Leaks in your game!
When you run the Compiler it builds your game much as a house would be built. It builds the frames then it applies the textures. Picture this applying the textures as painting. It paints the textures you want onto the surfaces you have designed.
What you have to do when designing your games is make sure there are no unwanted holes in your game. Because what will happen is that the texture (Paint) will pour out. The compiler will keep pouring paint out in areas that are not displayed in the game. This will slow your game down considerably and may cause it not to run.
Here is a visual explanation:
Here are two room placed side by side. I will be cutting a hole between them to create a doorway.
See how the two rooms have a little bit of space between them? When I cut a doorway between these rooms there will be a leak where the compiler will try to pour the texture out into the surrounding not visible area of the game.
Always place your structures right up against each other. To get a better look and ensure you have placed them correctly you can use the view button and zoom in on the grid.
The two rooms are placed right up against each other. This is correct placement. When we cut a doorway between the rooms the textures will not leak out upon Compile.
Remember: Leaks can slow your game down considerably - even stop it. So always take care when placing your structures in the game.
Let's start fresh with a new Project. Pull down File | New or do Ctrl + N
You have a brand new Cube now
Hit enter to accept it
Press the camera button
Right click your mouse and drag down inside the Top view pane. This pulls you away from the scene. Now left click and drag your box over to the right of the screen. This makes room for you to place your next room. It should look like this:
Now we are going to place our second room in the game.
Press the Template button
Pull down the menu Tools | New Brush | Cube and accept the default values
This places a new box right on top of your first box.
Press the Move/rotate button and click and drag your new box away from the first box. Place it so it rests right along side the first box. Remember to avoid any space so the game doesn't leak. It will look like this:
Hit Enter to accept your new room.
You are now ready to cut out the doorway between the two rooms. To do this we use something called a cut brush. Go to template mode and select the cube brush. This is important: Select the parameters for this brush as "solid" and "cut brush" - Click ok
Now press enter and your cut brush appears.
It is right on top of the last cube you made so select Move/Rotate and move it so you can see it. NOtice how it doesn't have the double walls like the other cubes. This is a solid cube because you selected "solid" when building this brush. (it is blue)
Kind of a big doorway isn't it. It is the same size as our rooms so let's resize it.
Press the Scale/Resize button and click and drag your new cube to a smaller size.
Visualize this cube as a doorway and reposition it where you want your door to be cut out of the walls. To reposition it use the Move/rotate button
Keep moving and scaling this new cube until you get it where you want it. You should end up with something that looks like this:
Remember not to place it in a way that will cause a leak in the level. Now all you have to do is in template mode hit enter and the cut brush will turn an orange color. This means it has cut away the door.
To verify you have made the cut you can move around in the view screen by pressing the View button then right or left click and hold the mouse in the view panel and move your view around. I have applied some quick textures to the rooms so you can see my doorway. I put the same texture on both floors to add a nice continuity between the rooms.
I have also intentionally placed a space between the two doors to show you a leak between my two rooms (this is pointed out with the yellow arrow). Just select one of the rooms and with the Move/rotate button click and hold the room moving it closer to the other room.
Experiment with cut brushes. Cut a window, resize the cuts. Remember that the mode is important so you have to switch modes between Template, Move and view mode. Resize your solid cubes before cutting because once they are cut you cannot resize them.
Do more cuts and remember to check for leaks.
You have got some basics down now. You can actually start to make some complex levels. I recommend you practice the skills you have learned. It takes time to understand how to switch between the modes and how to manipulate the various objects. Practice what you have learned and stitch together more rooms of various sizes. Make sure you practice applying textures and lights.
Free Game making programs - to help you make games without spending money.
Writing quests for video games. Tips, ideas and techniques
A look at video game design - This shows you the process of how a game is designed and I take you from idea to game.
What is the most important thing you need to make a video game? It isn't what you think
Who do you contact if you want to get a job in the game industry? I have advice and more.
Video Game Design - What is it and how is it done?
Kids Make Video Games: A Guide for kids of all ages in game making.
A look at Assassin's Creed II - From a game makers perspective. This game is remarkable and there are some great lessons to be learned from it when it comes to making video games
Into the Looking Glass: A History of video games including a video. How did it all start?
A look at the various Game Design Software Packages - Help finding the one that's right for you
Free Resources for making video games. If your budget is Zero these resources are for you!
Three New Lessons in the Milkshape 3d Animation Tutorial: Animate, Link skeleton to skin, and animate both
So You have a great idea for a video game! What do you do now? - Some solid advice on turning an idea into reality
AMD New Chipset and Processor breaks the barrier in gaming realism - games that look as good as movies are coming
How to write a video game players guide - Writing a guide is an easy way to start learning about how games are made.