J
Jordan Robinson
Guest
I am trying to deactivate all instances in the game except for those on the "Controllers" layer:
All the instances are deactivated correctly, however the layer I want re-activated is not. If I individually activate the instances I want using instance_activate_object() it works fine...
Am I misunderstanding the use of instance_activate_layer()? My implementation appears to fit the description in the documentation
[EDIT - SOLUTION]
I didn't realise that my persistent objects in the "Controller" layer will not move automatically to the "Controller" layer in the next room. Resetting their layers in the room_start event solved the issue.
Code:
instance_deactivate_all(true);
instance_activate_layer("Controllers");
All the instances are deactivated correctly, however the layer I want re-activated is not. If I individually activate the instances I want using instance_activate_object() it works fine...
Am I misunderstanding the use of instance_activate_layer()? My implementation appears to fit the description in the documentation
[EDIT - SOLUTION]
I didn't realise that my persistent objects in the "Controller" layer will not move automatically to the "Controller" layer in the next room. Resetting their layers in the room_start event solved the issue.
Last edited by a moderator: