Hello , first sorry for my bad English.
This is my first post here. I try to make object move using transition and its work well. this my code
local function left() local function right() transition.to(musuh,{time=5000, x=musuh.x+200, onComplete=left , tag = "animationBlock"}) musuh.xScale=1 end transition.to(musuh,{time=5000, x=musuh.x-200, onComplete=right}) musuh.xScale=-1 end left()
my problems is, when i click button pause is show corona runtime error.
this my pause code
-------------------------------------- ---- Pause Event local onButtonPauseEvent = function (event) if pausepressed == false then pausepressed = true physics.pause() animcoin:pause() jomblo:pause() musuh:pause() musuh2:pause() audio.pause() transition.pause("animationBlock") end
hope someone can help me here in my problem thanks a lot in advance.