How to activate object deactivated from the start?

Jihl

Member
Hey there!

I'm trying to use the function instance_activate_object and it's counterpart, but I can't activate an instance that has been deactivated from the room's create event.

Image for explanation


Then I use:
Code:
instance_activate_object(obj_logout_button)
And it does not activate it, but when the object is active from the very beginning I can deactivate and activate it again.

Do anyone know how to activate an object that has been deactivated at the room's creation event? Or is there even a way to do it? That way I can make my way working on the buttons and labels without having it everything on the room drawn at the same time

Thanks everyone!
 

TheouAegis

Member
I don't think those are deactivation toggles. Those are for room ingeritance I think. You need to put the buttons in the room and then deactivate them in their instance creation code.
 

Jihl

Member
I don't think those are deactivation toggles. Those are for room ingeritance I think. You need to put the buttons in the room and then deactivate them in their instance creation code.
Thank you very much for the clarification!
 
Top