how to make my create move

i am new to game devlopment and new to corona i am going over all the example code to get use to the coding off lua ect and testing out different things to get my head around it all so i thought i make an mash up off an few off the examples and set somting up my self

here is what i got so fare

[code]-- hold the sound file in memory for us to use later by calling start sound
local startsound = audio.loadSound( “youlose.wav” )
–Hide status bar from the beginning
display.setStatusBar( display.HiddenStatusBar )
– sets up so we cam move the crate
local cratemove = display.newImage( “images/crate.png” )
local physics = require( “physics” )
physics.start()
– play sound whne u start the app
audio.play( startsound )
local sky = display.newImage( “images/color_blur.png” )
sky.x = 160; sky.y = 195

local ground = display.newImage( “images/grass.png” )
ground.x = 160; ground.y = 445

physics.addBody( ground, “static”, { friction=0.5, bounce=0.3 } )

local crate = display.newImage( “images/crate.png” )
crate.x = 180; crate.y = -50; crate.rotation = 4

physics.addBody( crate, { density=3.0, friction=0.5, bounce=0.3 } )

–event listner to see if the user is adding touch
addEventListener( “touch”, movecrate )
[/code]

i under stand that i need an event listner but i am not sure what i need to add into the event table or how to go about adding it into my source to make it so i can move the crate like in the drag me example

thank you for your help guys [import]uid: 27349 topic_id: 6626 reply_id: 306626[/import]

Any one
[import]uid: 27349 topic_id: 6626 reply_id: 24052[/import]

you should have a

[lua]function movecrate(event)[/lua]

in there somewhere
[import]uid: 6645 topic_id: 6626 reply_id: 24056[/import]

can you give me an example
pleas thank you [import]uid: 27349 topic_id: 6626 reply_id: 24062[/import]

look at the “DebugDraw” example in the “physics” folder of the included samples

that uses the [lua]gameUI.dragBody[/lua] function for physics-based dragging

if you dont want physics based dragging, look at the “DragPlatforms” example [import]uid: 6645 topic_id: 6626 reply_id: 24065[/import]