// 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 get_win_midx(); /// @param {real} _spr_width Sprite Width (use if origin on abs left of sprite) /// @description Return window middle or how much back to put it with the object width function get_win_midx(_spr_width = 0){ return ((window_get_width()/2) - (_spr_width/2)); }