S
steskle
Guest
Hello everyone.
I'm having problems in regards of instance activation/deactivation.
Back in GM8, I've always done this.
I have an instance called "camera" which, in the step event, controls the enemy activation/deactivation.
obj_deactivateme is the parent of object for all enemies (it's actually the parent of the enemies' parents), but it still works.
The instances are indeed deactivated, but are not reactivated once they step into the activation region.
Moreover, the instances that are created already in the region are not deactivated once they step out of it.
I've checked my original GM8 files and all seems to work correctly.
Other than that, I've also noticed, by adjusting the x offset of the view juuust a bit (in the room editor), the game acts as if the view doesn't move. The "camera" does, but the activation region doesn't follow the view, but instead remains to the starting coordinates of the view.
So... what is happening?
I'm having problems in regards of instance activation/deactivation.
Back in GM8, I've always done this.
I have an instance called "camera" which, in the step event, controls the enemy activation/deactivation.
obj_deactivateme is the parent of object for all enemies (it's actually the parent of the enemies' parents), but it still works.
For some reason, in GMS2 this doesn't seem to work.instance_deactivate_object(obj_deactivateme)
instance_activate_region(view_xview[0]-16,view_yview[0]-16,view_wview[0]+16,view_hview[0]+16,true)
The instances are indeed deactivated, but are not reactivated once they step into the activation region.
Moreover, the instances that are created already in the region are not deactivated once they step out of it.
I've checked my original GM8 files and all seems to work correctly.
Other than that, I've also noticed, by adjusting the x offset of the view juuust a bit (in the room editor), the game acts as if the view doesn't move. The "camera" does, but the activation region doesn't follow the view, but instead remains to the starting coordinates of the view.
So... what is happening?