Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
GTween Oncomplete — Gideros Forum

GTween Oncomplete

zakkwyldezakkwylde Member
edited January 2012 in General questions
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

Sign In or Register to comment.