although the touch event is working,the dpad does not show on the screen. have i done somethimg wrong on my code.
thanks for your help
function scene:create( event ) local sceneGroup = self.view display.setDefault("background", 0.2 ) physics.start() physics.setGravity(0,90) physics.pause() --loading map local mapData = require("maps.level"..G.currentLevel) local map = tiled.new(mapData,"maps") sceneGroup:insert(map) map.x,map.y =0,0 --player nesnesi player=require ("player"); sceneGroup:insert(player) local mapPlayer=map:getObjectByName(map.layerGroups["player"],"objPlayer") player.x,player.y=mapPlayer.x,mapPlayer.y dpad=require "dpad" sceneGroup:insert(dpad) dpad:toFront()--dpad doesnt appear!!!!!!!!!!! --camera system camera = perspective.createView() camera:add(player, 1) camera:prependLayer() camera:add(map.layerGroups["sky"],4) camera:add(map.layerGroups["landBack"],3) camera:add(map.layerGroups["land"],2) camera:setParallax(1, 1, 1, 0.1) camera:setBounds(display.contentCenterX,map.designedWidth-display.contentCenterX-32, display.contentCenterY,map.designedHeight-display.contentCenterY) camera.damping = 10 camera:setFocus(player) camera:track() end