Edravis Posted April 16, 2014 Share Posted April 16, 2014 At first, It works perfectly. Then I change the world by game.world.setBounds(-500, -300, 1000, 600) and sprite.outOfBoundsKill = true doesn't work. Don't kill it. I tried to make the condition manually by:if(sprite.inWorld === false) sprite.kill()But in this case, never create any. My version is v1.1.6 in the Chat IRC they told me to upgrade, I tried and the whole game breaks, I'm not able to migrate now because the calendar. Any idea? So much thank you,R Link to comment Share on other sites More sharing options...
codevinsky Posted April 16, 2014 Share Posted April 16, 2014 You have to set:sprite.checkWorldBounds = true; Link to comment Share on other sites More sharing options...
Edravis Posted April 20, 2014 Author Share Posted April 20, 2014 Thanks but it doesn't work. I fixed it by set up a condition like:if(this.sprite.y > 300) sprite.kill(); Link to comment Share on other sites More sharing options...
Recommended Posts