T
tamation
Guest
Is there any way to activate only one object when it's within the view region? I know there's instance_activate_region, but that seems to just blindly activate ALL instances within a region. I want something similar to that, but where it's only activating one type of object.
This is all I have right now in the code for my script:
///Deactivate all instances of solid collisions
instance_deactivate_object(oSolid)
I tried using distance_to_point in oSolid's step event to check where the player is so it knows whether or not to be active to see if that would somehow work, but that didn't really work out for fairly obvious reasons.
This is all I have right now in the code for my script:
///Deactivate all instances of solid collisions
instance_deactivate_object(oSolid)
I tried using distance_to_point in oSolid's step event to check where the player is so it knows whether or not to be active to see if that would somehow work, but that didn't really work out for fairly obvious reasons.