[Behavior] LiteTween

Post your completed addons to share with the community

Post » Mon Jul 07, 2014 6:36 am

Hello there, very useful plugin. I think it could be the great plugin for construct 2. Currently iam trying to make some menu with some tween movement on some buttons, when i tried to touching button (not touched button), i want the button getting more bigger (i set start scale), and when i relased it, the button getting normal scale. But what i got when i touching the button is the button continuesly grow and grow unless i released it.
Its me or its a bug? thank you very much
B
35
S
12
G
1
Posts: 85
Reputation: 2,965

Post » Tue Jul 08, 2014 6:29 pm

@nikosurfing

Is it something like this?

https://dl.dropboxusercontent.com/u/553 ... large.capx
B
33
S
6
G
1
Posts: 180
Reputation: 3,630

Post » Thu Jul 10, 2014 3:09 am

@lunarray
Wow.. looks simple, when I tried to change the object mouse to touching and it works. I really confident to make menu with some tween transition on every button, very useful behavior! Thank you...!
Last edited by nikosurfing on Sat Jul 12, 2014 5:46 am, edited 1 time in total.
B
35
S
12
G
1
Posts: 85
Reputation: 2,965

Post » Sat Jul 12, 2014 5:45 am

@lunarray

EDIT: i am sorry to bother you again, when i see your demo apple (LiteTween Stretch Demo (spam click on the right apple), i really don't have idea how to make the apple stretched, would you share the capx file? because i don't see capx file in the first page :)
B
35
S
12
G
1
Posts: 85
Reputation: 2,965

Post » Wed Jul 16, 2014 7:28 pm

Hi there I downloaded the files put them in the plugin folder fired up easetwee ref capx. When C2 boot up, window appears with message "litetween isnt installed - (long story short)" I use r 173 release, am I did something wrong? :(
Try my creations on newgrounds or Google play, feedback highly appreciated!

ImageImage
B
9
S
1
Posts: 73
Reputation: 785

Post » Thu Jul 17, 2014 9:07 am

@jantaaa : did you put the plugin in the behavior directory?
B
35
S
12
G
1
Posts: 85
Reputation: 2,965

Post » Thu Jul 17, 2014 3:10 pm

First off, great work on Litetween.

I was wondering if there was a way to take advantage of the elastic tween but make the target the original size? Kind of give the sprite a gelatin effect where if would spike and then settle to its original form. Any help is appreciated. Thanks.

-Ben
B
40
S
11
G
6
Posts: 228
Reputation: 6,951

Post » Sat Jul 19, 2014 1:01 pm

nikosurfing wrote:@jantaaa : did you put the plugin in the behavior directory?


Sorry I meant Behaviors folder, I find the issue. I had it in the folder of older Construct2 version, silly me :D Anyway thank you for reply :)
Try my creations on newgrounds or Google play, feedback highly appreciated!

ImageImage
B
9
S
1
Posts: 73
Reputation: 785

Post » Mon Jul 21, 2014 11:26 pm

@sman118

You can put all bouncies into a family, and make events for that, like the one on the apple example. That is if you just need to do bounce animation for sprites. I think several posts earlier i just post the apple's capx somewhere.

But, If you really want to make it bouncy using elastic tween without multiple tween, you would need to write a custom tween function and implement it into litetween.
B
33
S
6
G
1
Posts: 180
Reputation: 3,630

Post » Thu Jul 24, 2014 12:28 pm

Hello again, @lunarray . :)

I'm still using LiteTween to great success. Thank you!

However, I've encountered a bug. When attempting to tween the scale on a sprite font, it gives this error:

Javascript error!
TypeError: this.inst.curFrame is undefined
http://192.168.1.2:50001/lunarray_LiteTween_behavior.js, line 321 (col undefined)


I'm guessing this might be because scale on sprite fonts is applied only to the text and is independent of the overall size of the instance. So there are two different scales involved.

For my own use, having one tween value applied to both the text scale and the instance scale would be fine. So far I always want to change both at the same time and at the same scale. However, it would be more robust to have the two different scales available to tween independently. Or if you wanted to go all the way, you could have three scale options for sprite fonts; one for the text, one for the instance, and one that does both. However you see fit. :)

Thanks again!

Example attached.
You do not have the required permissions to view the files attached to this post.
B
8
S
1
Posts: 55
Reputation: 466

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 3 guests