menu
 
Version
2017.2.10.6745

2024.1.7.8863

2023.1.15.8789

2025.1.0.8897

2022.1.19.8584

2021.1.14.8108

2019.2.15.7667

2019.1.11.7296

2018.1.11.6987

2017.2.10.6745

2017.1.9.6501

2016.2.6.6153

2015.1.9.5624

menu

Crossfading Between Containers on a Blend Track

Now that there is a way to track how far an object is from the player, we can use this information to drive the Crossfade between various containers on a blend track inside of a blend container we have named magic_blast_fire_distance_blend.

As we did for the blend containers created for the ambient system, a new blend track will be created with a Crossfade enabled based on the new game parameter for Distance_to_Player.

Creating a new blend track with Crossfade enabled based on the Distance_to_Player game parameter

Randomized containers can then be added to the assigned objects area in the distance blend track. As previously mentioned, the order of these containers in the assigned objects section is reflected in their positioning on the blend track.

Adding containers to the blend track in the correct order

After the information is passed successfully from the game, the Distance_to_Player game parameter controls the Crossfade between containers, playing only the container (or containers) beneath the game parameter cursor.

  • When the game object plays the magic blast event within 0-25 units from the player, the magic_blast_fire_blend_near is heard alone.

  • When the game object plays the magic blast event within 25-75 units from the player, a blend of both perspectives is heard.

  • When the game object plays the magic blast event within 75-100 units from the player the magic_blast_fire_blend_far is heard alone.

info Designer Note

While similar distance-based blending can be done using multiple attenuations, there are workflow benefits to managing these within blend tracks.


Was this page helpful?

Need Support?

Questions? Problems? Need more info? Contact us, and we can help!

Visit our Support page

Tell us about your project. We're here to help.

Register your project and we'll help you get started with no strings attached!

Get started with Wwise