scr_positions.gml 440 B

123456789
  1. // Les actifs du script ont changé pour v2.3.0 Voir
  2. // https://help.yoyogames.com/hc/en-us/articles/360005277377 pour plus d’informations
  3. // @function get_win_midx();
  4. /// @param {real} _spr_width Sprite Width (use if origin on abs left of sprite)
  5. /// @description Return window middle or how much back to put it with the object width
  6. function get_win_midx(_spr_width = 0){
  7. return ((window_get_width()/2) - (_spr_width/2));
  8. }