audio_group_name

Returns the name of the audio group as a string.

Syntax:

audio_group_name(groupID);


Argument Description
groupID The index value constant of the audio group to check (as defined in the Global Game Settings Audio Groups Tab)


Returns: String


Description

This function will return a string containing the name of the given audio group for displaying or checking. When you define an audio group in the Global Game Settings, you give it a unique "name" which is really a constant to use as an ID value for the group. All this function does is take the ID and return a string of the ID name you gave.


Example:

var name= audio_group_name(audiogroup_level1);
draw_text(32, 32, "Now Playing Group: " + name);

The above code retrieves the name of the given audio group constant and displays it on the screen.


Back: Audio Groups
Next: audio_group_stop
© Copyright YoYo Games Ltd. 2018 All Rights Reserved