[Behavior] LiteTween

Post your completed addons to share with the community

Post » Sat Apr 12, 2014 12:45 am

@jayderyu
I think putting that feature on the main litetween is not really a good idea :o, so i forked it instead and make a simple capx here. Not sure if this is what you wanted.

Oh, and can you tell me why you need 24fps update? I'm just curious as why it is not desirable to play with as much fps as you can.

https://www.dropbox.com/s/enktbw4cm6ewo ... ps_cap.zip
B
36
S
6
G
2
Posts: 190
Reputation: 4,223

Post » Sat Apr 12, 2014 7:21 am

Thanks for the fork. I appreciate that :)

I found beahviours calculating angle everytick to kill my mid level testing device.

As an example the simple Behaviour or Rotate even no matter what the size of the image. results were as follow
100x100 image
No Rotation: 60fps, 10% cpu
Rotate behaviour: 30FPS, 40% cpu
24fps by use of evey 0.040: 60fps, 20% cpu cycle

2048x2048 image
No Rotation: 60fps, 10% cpu
Rotate behaviour: 20FPS, 50% cpu
24fps by use of evey 0.040: 60fps, 20% cpu cycle



calculating trigonometric math is terrible on medium devices. Where I'm sure LiteTween basic movement is fine. Some of the other more curving trigonometry I feel would be better being calculated less often. And proven so.
B
90
S
18
G
9
Posts: 2,455
Reputation: 15,018

Post » Tue Apr 15, 2014 6:40 am

What is the difference between the settings "relative" and "absolute"? I couldn't see an explanation on the front page or in the extension itself.
B
147
S
74
G
20
Posts: 1,786
Reputation: 22,527

Post » Tue Apr 15, 2014 12:37 pm

@alspal if Your Target is for example x:100, y:100 in absolute mode it will move object to layout coordinates X100, Y100. In relative mode it will move "from object current position" 100 pixels to the right and 100 pixels down.
ImageImageImageImage
B
157
S
66
G
41
Posts: 2,599
Reputation: 34,825

Post » Tue Apr 15, 2014 1:05 pm

Oh right, yeah that makes sense. Thanks.
B
147
S
74
G
20
Posts: 1,786
Reputation: 22,527

Post » Tue May 13, 2014 9:38 am

What about tweening SCALE

size is okay but it doesnt cut it really. What if you have animation with different size of each frame (wchich is legit thing to do to optimize game memory usage). Scale would be far better and stable to use instead of setting width and height.
B
22
S
7
Posts: 94
Reputation: 1,783

Post » Wed May 14, 2014 10:20 am

Okay, scale is on my to do list now :o, I already implemented it in the old EaseTween, but i guess i need to stop being lazy and implement it again in this one :D. There are also some other features i'm thinking of adding, but i don't want to put on too many features.
B
36
S
6
G
2
Posts: 190
Reputation: 4,223

Post » Thu May 15, 2014 4:01 am

@PKrawczynski

Okay, I've added playmode flip flop and scale tween. Last time I tried, it works well even with compromise mode.

FYI, relative target does not really make too much sense here so both relative and absolute works exactly the same on scale tween.

As usual, the download is at the first page.
B
36
S
6
G
2
Posts: 190
Reputation: 4,223

Post » Thu May 15, 2014 5:43 am

I forgot to upload the files -.- sorry, it should work now...
B
36
S
6
G
2
Posts: 190
Reputation: 4,223

Post » Thu May 15, 2014 5:59 am

Wow man thanks that was fast and is VERY usefull for projects :)
B
22
S
7
Posts: 94
Reputation: 1,783

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 1 guest