instance_deactivate_all() (Game Maker)


(Game Maker Game Maker 6.1, 7)

instance_deactivate_all - deativate all instances in a room.


instance_deactivate_all ( notme )

  • notme = true or false

instance_deactivate_all() deactivates all instances in the current room. If notme is set to true, then every instance except the instance that calls the function will be deactivated. If it is set to false, every instance in the room is disabled, and your game will completely stop (because no instances is active not because it crashes).


Example of Use


In this example, all the instances in the room will be deactivated except the one calling this function.

See Also

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution 2.5 License.