Game Maker
Advertisement

instance_sprite(sprite name)

Checks to see if there is an instance with that sprite currently in the room.

Ex. if instance_sprite(playerleft){ direction=left; }

Advertisement