local function shakeScreen()
stage:setPosition(-10, -10)
GTween.new(stage, 0.25, {x = 0,y = 0}, {delay = 0, ease = easing.outBounce })
end
Loves: phongtt, talis, chipster123, atilim, thanhquan1512
--will shake the object just pass your button object for test |
Loves: Teranth, chipster123
function pulse(object,scl)
if scl ~= nil then
object:setScale(scl)
else
object:setScale(1.2)
end
GTween.new(object, 0.2, {scaleX=1,scaleY=1}, {})
end
function shake(object) |
function shake(object) |
--change the value 5 to change the shake distance |
It looks like you're new here. If you want to get involved, click one of these buttons!
ar2rsawseen
2645
OZApps
1291
techdojo
1235