GameMaker Studio 2 Desktop

GameMaker Studio 2 Desktop

Ban885 Jun 11, 2020 @ 4:48am
object_exists vs instance_exists
just wondering whats the difference between the two. aren't instances basically objects?
< >
Showing 1-1 of 1 comments
maras Jun 11, 2020 @ 7:40am 
From docs: object_exists
"This function returns whether an object with the specified index exists or not. Note that this checks to see if an object is present in the resource tree, and not actually in the game room. For that you should use the function instance_exists."

TLDR
object_exists - checks for the object in the resource tree
instance_exists - checks for the object in the current room
Last edited by maras; Jun 11, 2020 @ 7:43am
< >
Showing 1-1 of 1 comments
Per page: 1530 50

Date Posted: Jun 11, 2020 @ 4:48am
Posts: 1