I am working on a small project and I need some help. The project has some sprites that play a sound when they are touched. The sound clip assigned to each sprite has a different length of time.
I'm trying to assign the length of the last audio clip played to a global variable called AUDIO_LEN (using the Audio.Duration expression).
The first time the sprite is touched, the value of AUDIO_LEN does not change. The second time the sprite is touched, the value of AUDIO_LEN is accurate.
The expectation is for AUDIO_LEN to get the right value the first time.
Thank you very much for your help!!!