–In main.lua i have used this code::
director = require(“director”)
mainGroup = display.newGroup()
mainGroup:insert(director.directorView)
require “sprite”
require “graphics”
director:changeScene(“main_menu”)
–In main_menu.lua i have used::
module(…, package.seeall)
new = function ( params )
local localGroup = display.newGroup()
local RRectangle = display.newRect(340, 200, 200, 100)
RRectangle:setFillColor(140, 140, 140)
RRectangle.alpha=1
function takeJump(event)
print(localGroup.x," okokokoko")
end
Runtime:addEventListener(“touch”,takeJump)
return localGroup
end
while running the main file the top most right area is not taking any event.Clicking on top right side “touch event” is not working with this director class 1.5,1.4,1.3.
please anybody give a solution…because i am making a run jump game and i wanna give a right tab button to jump but it is not working well…pls help…corona community…
[import]uid: 129148 topic_id: 27201 reply_id: 327201[/import]