Game Development Reference
In-Depth Information
// Update in Idle state
...
// If I see an enemy, go to Alert state
GotoState('Alert');
}
Begin:
`log("Entering Idle State")
}
state Alert
{
function Tick( float DeltaTime)
{
// Update in Alert state
...
}
Begin:
`log("Entering Alert State")
}
Visual Scripting Systems
An increasing number of game engines now implement visual scripting systems
thatlookalotlikeflowcharts.Thesesystemsaretypicallyusedforsettinguplevel
logic. The idea is that rather than requiring level designers to write any text-based
code, it instead is easier to set up the actions that occur with a flow chart. For ex-
ample, if a level designer wants to have enemies spawn when the player opens a
door, this might be done with a visual scripting system. In the Unreal Engine, the
visual scripting system used is called Kismet; a screenshot of it in action is shown
in Figure 11.2 .
Search WWH ::




Custom Search