thank you very much for that. ill have a look after ive finished some code ive been putting off
![Wink ;)](./images/smilies/ms-wink.png)
EachSiENcE wrote:So, maybe it's an love-loader problem.
Here is an sample with love-loader. Look at the console...after love-loader has loaded the image...the callback function is called twice. But without the first tween it's only called once.
Code: Select all
first tween finished
image table: 0x00dd47b8 left-hand-climber-hi
second tween finished
Code: Select all
first tween finished
image table: 0x02945188 left-hand-climber-hi
second tween finished
Code: Select all
first tween finished
image table: 0x02945188 left-hand-climber-hi
second tween finished
second tween finished
I suspect that threads would be your most likely culprit if sometimes it works and sometimes it doesn't and everything else is basically identical between runs.SiENcE wrote:I get different results when executing it several times
I don't have any plans to add more easing functions to flux for the moment. You are able to add your own easing functions for your project easily though by assigning a new one to the flux.easing table.Jasoco wrote:[...] I do wish it had some more Easing options. Like bounce.
Code: Select all
flux.easing["jitter"] = function(p)
return p + (1 - math.random() * 2) * 0.04
end
Code: Select all
local amount = 4
flux.easing["backout2"] = function(p)
p = 1 - p
return 1 - (p * p * ((2 + amount) * p - (1 + amount)))
end
Users browsing this forum: No registered users and 2 guests