• 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!

Help with regional activation/deactivation

K

kaerpaenen

Guest
I'm trying to deactivate my objects outside the screen, and activate them just before they appear. I am using
Code:
instance_activate_region(view_xview, view_yview, view_wview, view_hview, true);
which is working except for my trees. My trees are 64 pixels tall, 32 wide and whenever I move down (top down view), the treetops pop up on the screen...

I've tried increasing the area size with:
Code:
instance_activate_region(view_xview-32, view_yview-32, view_wview+128, view_hview-128, true);
and increasing it even further than that but it doesn't seem to affect?
 
Top