I am developing 2D scroller game. In that game i use .colliedWith(tiledLayer, true) to a sprite to detect collision with TiledLayer. The game works fine, but when the sprite collieds with TiledLayer, i could see, increasing memory usage in memory monitor tool and int array objects are increased in memory by the above method. Then i used .colliedWith(tiledLayer, false) and now the problem is over. My doubt is why it happens?