deactivate objects

Discussion in 'Programming' started by Zhe73, Jul 11, 2019 at 7:08 AM.

  1. Zhe73

    Zhe73 Member

    Joined:
    Jun 20, 2016
    Posts:
    3
    Hi all,

    anyone an Idea why only enemys deactivate to the left and above the player, but not from the right and under the player?

    //INSTANCE_DEACTIVATES
    instance_deactivate_object(obj_enemy);
    instance_deactivate_object(obj_animas);
    instance_activate_region(obj_player.x-200,obj_player.y-100,obj_player.x+200,obj_player.y+100,1);
     
  2. TsukaYuriko

    TsukaYuriko Q&A Spawn Camper Forum Staff Moderator

    Joined:
    Apr 21, 2016
    Posts:
    1,462
    instance_activate_region uses [left, top, width, height] coordinates, not [x1, y1, x2, y2].
     
    Phil Strahl and Zhe73 like this.
  3. Zhe73

    Zhe73 Member

    Joined:
    Jun 20, 2016
    Posts:
    3

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice