H
Hudsonius
Guest
I'm using a very large room with hundreds of objects in it, and I needed to deactivate objects not in the view, so I used:
In the controller object. (I set vx, vy, vw, and vh to be view x, view y, etc.) However, the deactivated region isn't moving with the player's camera. All the views match to zero, so the controller isn't setting it to a different view. If the player goes out of the region deactivated, he will be deactivated too. Any help?
Code:
instance_activate_region(vx,vy,vw,vh, true)
instance_deactivate_region(vx,vy,vw,vh,false,true)