I think I have everything set up correctly but I’m not entirely sure here is the code for that section.
screenButton = display.newRect(display.contentWidth/2, display.contentHeight/2 - 120, display.actualContentWidth, display.actualContentHeight ) gui.front:insert(screenButton) screenButton:setFillColor(255,255,255, 0.01) screenButton:addEventListener( "touch", screenTapListener ) screenButton2 = display.newRect(display.contentWidth/2 - 110, display.contentHeight/2, display.actualContentWidth, display.actualContentHeight ) gui.front:insert(screenButton2) screenButton2:setFillColor(255,255,255, 0.01) screenButton2:addEventListener( "touch", screenTapListener ) shootbtn = display.newImage( "shootbutton.png") shootbtn.x = display.contentWidth -50 shootbtn.y = display.contentHeight -50 gui.overlay:insert(shootbtn) system.activate( "multitouch" ) function shoot(event) if ammo \>= 1 then local bullet = display.newImage("bullet.png") physics.addBody(bullet, "kinematic", {bounce = 0, isFixedRotation = true}); bullet.x = player.x bullet.y = player.y - 50 bullet.myType = "bullet" transition.to ( bullet, { time = 1000, x = player.x, y =-100} ) ammo = ammo - 1 ammoText.isVisible = false ammoText= display.newText( "Ammo: "..ammo,0,0, ARCADEPIX, 70 ) gui.overlay:insert(ammoText) ammoText.anchorX = 0 ammoText.anchorY = 0 ammoText.x = display.screenOriginX + 30 ammoText.y = display.screenOriginY + 170 + bannerOffset end return true end shootbtn:addEventListener ( "touch", shoot )