// Les actifs du script ont changé pour v2.3.0 Voir
// https://help.yoyogames.com/hc/en-us/articles/360005277377 pour plus d’informations

// @function							array_loop();
/// @param {Array}		_arr			The array to move into
/// @param {real}		_curr			The current variable
/// @param {real}		_add			Moving how many
/// @description						Move and loop into the different variables of an array
function array_loop(_arr, _curr, _add){
	_curr += _add
	
	if (_curr > array_length(_arr))
		_curr = 0;
	
	if (_curr < 0)
		_curr = array_length(_arr);
		
	return _curr
}