GM: instance deactivate all

From GMpedia.org Wiki

Jump to: navigation, search
The correct title of this article is instance_deactivate_all(notme). It appears incorrectly here because of technical restrictions.
The correct title of this article is instance_deactivate_all(). It appears incorrectly here because of technical restrictions.


Arguments

notme = true / false

Limitations

none

Note: Please remove limitations and port them in the "Remarks" section at the end of the article.

This function will stop all instances in the room from doing anything, that includes drawing itself, notme is asking if it shall stop the object that is performing the code also, this can be true or false.

[edit] Example

//to pause the game
if keyboard_check(vk_up) then
{
 instance_deactivate_all(true);
}
else
{
 instance_activate_all();
}
This article was originally found at the Game Maker Knowledge Base, contributed by cityscape.
See the talk page for details
Personal tools