hey guys,
i watched a tutorial on dragging physics. well im wanting to get the cursor i have to be draggable. the one in the video uses the sample dragMe which is the roundedrect, but im using an image. any ideas? thanks in advance!
[code]
module(…, package.seeall)
local localGroup
function new()
localGroup = display.newGroup()
print( “Level 1” )
local sky = display.newImage( “Turqouise Back.png”, 0, 0 )
localGroup:insert(sky)
local button = display.newImage( “Main Menu.png” )
local function buttont ( event )
media.playEventSound( “Robot Blip.caf” )
if event.phase == “ended” then
director:changeScene(“Menu”,“moveFromLeft”)
end
end
button:addEventListener(“touch”,buttont)
button.x = 260
button.y = 34
localGroup:insert(button)
local cursor = display.newImage( “triangle.png”, 120, 450 )
localGroup:insert(cursor)
[code] [import]uid: 19836 topic_id: 7520 reply_id: 307520[/import]