core/assets: add a function to clone sprite
This commit is contained in:
parent
80d3d7e4d4
commit
343127cd7f
|
@ -42,6 +42,10 @@ function Sprite:update(dt)
|
|||
self.animator:update(dt)
|
||||
end
|
||||
|
||||
function Sprite:clone()
|
||||
return Animator(self)
|
||||
end
|
||||
|
||||
function Sprite:setCustomSpeed(customSpeed)
|
||||
self.animator:setCustomSpeed(customSpeed)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue