Tag Info

New answers tagged


Check whether it's possible to draw your objects or not when they are out of screen. if(yourSprite.x>screenWidth || yourSprite.x+yourSprite.width<0 || yourSprite.y>screeenHeight || yourSprite.y+yourSprite.Height<0){ //Don't draw } else{ //Draw your sprite } And easily can find whether your sprite is behind of another object or not ...

Top 50 recent answers are included