Switching the Footsteps Based on the Floor Type

How to Switch the Footsteps Based on the Floor Type?

You can prepare several Cues (three in this example) for the footsteps and switch them based on the floor type in the game.

craftv2_tips_performance_change_floor0.png

It is so simple that it can be implemented easily.

Issue When Calling Multiple Cues

Usually, when you want to call three Cues, you will have to set the Cue name for each of them.
This forces the programmer to know all the Cue names.

Although it is possible to define a convention for the Cue names or the Cue IDs,
it will be difficult to know where a mistake comes from (code or data) if there is a bug.
You also need as many Cues as combinations and must call different Cues.

The problem is not so severe when the number of floor types is limited (three in this example),
however it can quickly get out of hand with more floor types.

craftv2_tips_performance_change_floor0a.png

Using a Selector

Consider using a Selector when there are a lot of types of floors or when their number may increase in the future.
In that case, the number of Cues will not increase; only the number of Selector Labels.

From the viewpoint of management, multiple types of sounds are prepared using one Cue,
and the sound is switched by a Selector.
If the Selector can be applied to multiple Cues, the rule becomes clear and the implementation is easily handled.

craftv2_tips_performance_change_floor0b.png

Steps

1. Merge the Cues.

craftv2_tips_performance_change_floor1.png

2. Change the Cue type to Switch.

craftv2_tips_performance_change_floor2.png

3. Check the Selector.

None is Selected for the Selector/Wwitch. Now, prepare a Selector.

craftv2_tips_performance_change_floor3.png

4. Create a Selector in the Selectors folder.

craftv2_tips_performance_change_floor4.png

5. Change the Selector name.

craftv2_tips_performance_change_floor5.png

6. Create three Selector Labels.

craftv2_tips_performance_change_floor6.png

7. Change the Selector Label names.

craftv2_tips_performance_change_floor7.png

8. Select the Cue and specify a Selector.

craftv2_tips_performance_change_floor8.png

9. Assign the Selector Label to each Track.

craftv2_tips_performance_change_floor9.png

10. A warning is issued when the sound is played back without setting a Selector.

When playing in this state, the track of the selector label set in the global reference selector label is played.
Editing a Selector

craftv2_tips_performance_change_floor10.png

11. Open the session window from the [Display] menu.

craftv2_tips_performance_change_floor11.png

12. Register the Cue in the Session window.

craftv2_tips_performance_change_floor12.png

13. Select a Label and play back; the sound switches.

craftv2_tips_performance_change_floor13.png

14. Global reference selector If you select a label, you can change it all at once by the program.

The global reference selector label records the value in the global setting and the selector refers to it.
It can be used as a setting value when the selector label is not set to the player or when the player is reset.

craftv2_tips_performance_change_floor14.png