Sprite won't explode when it hits the floor or ceiling!

I want for my Sprite to collide with the ceiling and floor and explode. Before the big graphic update this code worked but, now it doesn’t. Can anyone help me fix this? BTW I am using v1 compatability mode.

Here’s the code:

ceiling = display.newImage(“invisibleTile.png”)
ceiling:setReferencePoint(display.BottomLeftReferencePoint)
ceiling.anchorX = 0
ceiling.anchorY = 0
physics.addBody(ceiling, “static”, {bounce=0.1, friction=.2})
screenGroup:insert(ceiling)

theFloor = display.newImage(“invisibleTile.png”)
theFloor:setReferencePoint(display.BottomLeftReferencePoint)
theFloor.anchorX = 0
theFloor.anchorY = 340
physics.addBody(theFloor, “static”, {bounce=0.1, friction=.2})
screenGroup:insert(theFloor)

city1 = display.newImage(“city1.png”)
city1:setReferencePoint(display.BottomLeftReferencePoint)
city1.x = 0
city1.y = 320
city1.speed = 1
screenGroup:insert(city1)
city2 = display.newImage(“city1.png”)
city2:setReferencePoint(display.BottomLeftReferencePoint)
city2.x = 480
city2.y = 320
city2.speed = 1
screenGroup:insert(city2)
city3 = display.newImage(“city2.png”)
city3:setReferencePoint(display.BottomLeftReferencePoint)
city3.x = 0
city3.y = 320
city3.speed = 2
screenGroup:insert(city3)
city4 = display.newImage(“city2.png”)
city4:setReferencePoint(display.BottomLeftReferencePoint)
city4.x = 480
city4.y = 320
city4.speed = 2
screenGroup:insert(city4)

jetSpriteSheet = sprite.newSpriteSheet(“jet.png”, 44, 17)
jetSprites = sprite.newSpriteSet(jetSpriteSheet, 1, 4)
sprite.add(jetSprites, “jets”, 1, 4, 750, 0)
jet = sprite.newSprite(jetSprites)
jet.x = -80
jet.y = 100
jet:prepare(“jets”)
jet:play()
jet.collided = false
physics.addBody(jet, “static”, {density=.1, bounce=0.1, friction=.2, radius=12})
screenGroup:insert(jet)
jetIntro = transition.to(jet,{time=1000, x=100, onComplete=jetReady})

anchorX and anchorY are a graphics 2.0 thing and don’t work in v1 compatibility mode.

Also, they must be between 0.0 and 1.0, so “theFloor.anchorY = 340” won’t work in any mode.

You haven’t posted any code containing a collision handler so I can’t tell why the collision part isn’t working.

Those anchors actually do work and I am using physics to make them collide with the player which is jet

anchorX and anchorY are a graphics 2.0 thing and don’t work in v1 compatibility mode.

Also, they must be between 0.0 and 1.0, so “theFloor.anchorY = 340” won’t work in any mode.

You haven’t posted any code containing a collision handler so I can’t tell why the collision part isn’t working.

Those anchors actually do work and I am using physics to make them collide with the player which is jet