Hello Caleb!
I just made a moving enemy object with physics. Everything works fine, until the enemy (child object from your addObjectType function) goes off screen. Obviously enemy falls because of tile culling destroys the floor where it is walking
I don’t want the tile culling disabled, so I was thinking 2 options:
- Set gravity off when enemy(child object) off screen.
Question for this option: is there a method to check if child object is off screen?
- Modify the starting and ending points for tile culling (in a specific tile layer would be nice).
Question for this option: how do I do that?
Or do you have much better method for this?