Hi,
What am I doing wrong to get the complete event when a tween finishes. Actor:onPlayerMoved is not called.
function Actor:onPlayerMoved(event)
print("Player Done")
end
function Actor:goRight(sprite)
local tween1 = GTween.new(sprite, .5, {x = sprite:getX() + 32})
tween1:addEventListener("complete", self.onPlayerMoved)
end
Thanks
Comments
Likes: atilim, hugocosta