• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Deactivate Certain Instances Outside of View

D

DerpedUpCow

Guest
I need a way to deactivate the instances of my obj_light that are outside of the view, but leave the ones in my view activated for optimization.
 

RangerX

Member
Another version, have an "outside view" event in the object with this code inside:

instance_deactivate_object(id,0)
 
D

DerpedUpCow

Guest
Another version, have an "outside view" event in the object with this code inside:

instance_deactivate_object(id,0)
Thanks, but how would I reactivate that object if it went back into the view?
 

RangerX

Member
You can have your main character or something activating a region (dimension of the view) every step or so.
 
Top