Div Games Online
logo Div Games Online

Documentation: Functions list of Div GO : Div Games Online v1.24.0

original functions new functions
filter functions:
[ALL FUNCTIONS] [math] [graphics primitives] [string] [print text] [interaction processes] [scroll]
[mode7] [scene3D] [graphic effects] [sound] [video] [geometric] [pathfinding] [color] [region]
[general interaction program] [date/time] [saved data] [string conversion] [resource load]
[music module] [array functions]
search functions:  

11 functions (Div / Div 2 / Div GO):

change_sound(channel id, volume, frequency);
continue_sound(channel id, time);
- time: from where will continue playing the sound
get_sound_length(channel id);
[returns the total length in seconds of the sound]
get_sound_playtime(channel id);
[returns the time in seconds what has been reproduced]
is_playing_sound(channel id);
[returns 0 if the sound channel is stopped and 1 if it is playing]
load_sound(filename, cyclic);
- cyclic: 0 to beep 1 time; 1 to ring being repeated indefinitely
pause_sound(channel id);
[returns the time where it has been paused in milliseconds]
set_volume(volume);
- volume: 0-100 to increase or decrease the overall volume of the game
sound(sound id, volume, frequency);
- sound id: returned by the sound file loaded with load_sound ()
- volume: 0 for minimum volume, maximum volume to 256
- frequency: 256 is the standard rate
stop_sound(channel id);
unload_sound(sound id);