Hello there. Here are GMS2.2 scripts I found useful
Animation management
Scripts that I used for animating my sprite and managing my state.
audio_animation_hit_frame(_end_frame_index)
Returns true if an animation hits the end of a specific _end_frame – it returns true just before changing to the next frame.
animation_end(stop_animation_true_false)
Returns true if an animation hits the last frame – it returns true just before cycling back. It will freeze the animation if arg0 is true.
animation_loop_between(first_frame_index, last_frame_index)
Loops current sprite animation between first_frame and last_frame.
Audio volume/gain management
Scripts that I used to keep the volume settings from the audio editor (otherwise overriden when manipulating gain)
audio_save_base_gains()
Saves the gain settings for all audio assets. Intended to be used once on game start to save the gains as defined in the IDE in the audio editor.
audio_update_gains(gain_value_0_1, base_gains_array)
Updates the gain settings for all audio assets. It takes into account the base settings saved at game start and multiply them by an overall gain setting passed as arg0. Itended to be used when changing the gain setting while the game is running.