Hallo Guys and Girls i have a Question
i use a Timer for an Animation. the Timer starts like this :
and the callback Function is this :
function player:onTimer()
local s = self.sprite
--self.sprite:setAlpha(self.sprite:getAlpha() - 0.1)
if(not (s:getScaleY() <= 0)) then
self.sprite:setScaleY(s:getScaleY() - 0.005)
else
self.timer:stop()
end
end |
so the basic Idea is to Shrink a Sprite. This works well on my PC Simulator but it is slower on the Device Player ? ( Android LG G4 ) .
Is this becaus of the Code ?
Comments
Fragmenter - animated loop machine and IKONOMIKON - the memory game
https://deluxepixel.com
https://deluxepixel.com