function IsSpriteinScreen(spr) x1# = screenToWorldX(0) y1# = screenToWorldY(0) x2# = screenToWorldX(getVirtualWidth()) y2# = screenToWorldY(getVirtualHeight()) ret = getSpriteInBox(spr,x1#,y1#,x2#,y2#) endfunction ret