menu
Table of Contents
-
Modules
Now that you have a Switch Group, you need to define all the possible surfaces the player could walk on during gameplay. Then you must decide on the names you’ll use to describe these surfaces. As with the Switch Group, these Switch names must be agreed upon with the game engine programmer so the game engine can properly communicate which surface the player is on.
-
Select the Material Switch Group object you just created, and then click the Create new 'Switch' icon.
-
Name the Switch object Concrete.
In Cube, there are a total of nine different materials that our hero might find himself trotting across, so you’ll need to represent each of them in this Switch Group.
-
Create and name the remaining Switch objects according to the following image.
To speed up this process, after you create the first Switch, copy it (Ctrl+C) and then paste it (Ctrl+V) eight times in the Material Switch Group. Rename the first copy, then press Tab to rename the next one, and so on.
Your Switch Group is now ready to receive information from the game engine. Well done!