Hi, new here but very excited.
I want to move a object from position A (x=0,y=50) and when finish the movement then go to B (200,50) and when finish the movement go to C (200,200) all this when I touch a Buttom for first time.
I´m new in Lua and this is what I do but only move when I hit the button but this is not what I want. Also I want to do it without Physics. Only moving the object. Can I do that ???
local Flecha = display.newImage( “FlechaAdelante.png” )
local function Toca (event)
if event.phase == “ended” then
if Flecha.x < 200 then transition.to( Flecha, { time = 2000, x = 200, y = 50} ) end
if Flecha.x >= 200 then transition.to( Flecha, { time = 2000, y = 200} ) end
if Flecha.y >= 200 then transition.to( Flecha, { time = 2000, x = 400} ) end
end
end
Flecha:addEventListener (“touch”, Toca)
Please helpme !!! and sorry my poor english. [import]uid: 47289 topic_id: 8718 reply_id: 308718[/import]