You could also do this, more simpler if your new. Just a personal preference.
[code]
local player = display.newRect( 0, 0, 50, 50 )
– Above is the Image. Just an example.
function holdPlayer(event)
– Add your function
end
player:addEventListener(“touch”, holdPlayer)
–[[For the above code, (player:addEventListener(“touch”, holdPlayer).
The image is called player, so you call it. Then it’s basically adding
a touch function enabling you to touch it. If you would like to tap it,
replace “touch” with “tap”. You would then call the function holdPlayer, the function.
That would be to make a touch function, you could then
use the code that GrahamRanson provided to move your object.
I’m not sure what you are really trying to get at so i’ll leave that alone.
By the way, thanks a lot GrahamRanson for creating Ice! It is extremely useful!
Michael --]] [import]uid: 23689 topic_id: 19372 reply_id: 74806[/import]