In this section, you give the user the ability to turn the car headlights on or off when they click the User Interface buttons.
Using the files you downloaded from TurboSquid, import the following files into the internal cast:
alloy_wheel_17_inch_sport.w3d
You may also set up hardware anti-aliasing using the following steps:
Using the sample files linked at the beginning of this article, import the following images into the internal cast:
headlights_on_selected.png
Figure 1 shows the internal cast after having imported all the assets and setting up the 3D scene.
Figure 1. The internal cast after having imported all the assets and setup the 3D scene
As shown in Figure 2, you can see there are three behavior instances in the behavior tab of the Property inspector.
Figure 2. Three behavior instances in the behavior tab of the Property inspector
In the Score, copy the opel_signum sprite and paste it to create a second one. The first sprite holds the scene initialization behavior instances. The second will hold all the interactivity.
Figure 3. The Score showing the two instances of the opel_signum sprite.
Click the Play button in the toolbar or press Enter in the numeric keypad. The movie starts and the scene appears as shown in Figure 4.
Figure 4. The movie with the Hold on Current Frame behavior enabled