[BEHAVIOR] Ease transition

Post your completed addons to share with the community

Post » Sun Feb 26, 2012 2:45 pm

[QUOTE=Ubivis] I do have a lot of fun with this PlugIn already, but I am currently thinking if it is possible to add a z-dimension? Maybe as a scaling method? It would be great, if it would be possible set a size endpoint.

Example:
You have an image that is 32x32 in size on x=0 and y=0. Now you like to move it to x=10 and y=50 and increease the size of the image to 64x64.

This would make it great to develop intro animations quite easy :)[/QUOTE]

This can already be achieved using the On Update Tick trigger condition with an action to change the object's size (see Object:Set size) using the GetTransition expression (0==origin, 1==destination).

Edit: An actual Z axis is a foreign concept to Construct 2 as it is currently only a 2D engine.GauVeldt2012-02-26 14:47:13
B
28
S
5
G
1
Posts: 30
Reputation: 1,889

Post » Tue Feb 28, 2012 8:41 am

Thanks for your answer. am using the lerp functionality on the onTransition event...works great :)
B
42
S
9
G
6
Posts: 437
Reputation: 5,626

Post » Tue Feb 28, 2012 8:33 pm

I was going to make an extension that worked exactly like this, but implemented these modes as well.

Want to do it instead of me(since you're the author of this extension and all)?
(please don't use jquery/jqueryui, be as dependency free as you can)

Also, in my opinion, it shouldn't even take a start and end point, 0 should be start and 1 should be end, and then you'd multiply and add to get what you want (similar to how RAND generates a number between 0 and 1, and you multiply it by the number you want to get a range)Fimbul2012-02-28 20:37:14
B
35
S
8
G
8
Posts: 532
Reputation: 6,868

Post » Wed Feb 29, 2012 1:50 pm

[QUOTE=Fimbul] I was going to make an extension that worked exactly like this, but implemented these modes as well.

Want to do it instead of me(since you're the author of this extension and all)?
(please don't use jquery/jqueryui, be as dependency free as you can)

Also, in my opinion, it shouldn't even take a start and end point, 0 should be start and 1 should be end, and then you'd multiply and add to get what you want (similar to how RAND generates a number between 0 and 1, and you multiply it by the number you want to get a range)[/QUOTE]

I had planned on adding support for custom transition functions at some point in the future. It is on the TODO list.
B
28
S
5
G
1
Posts: 30
Reputation: 1,889

Post » Wed Feb 29, 2012 8:47 pm

"custom" transitions means we'll be able to write our own transition functions? That seems like a lot of work! The examples I showed you would be enough [for me, at least], also their formulas are publicly available.

Personally, I'd prefer if you wrote this as a purely mathematical plugin that didn't attempt to move stuff. It could be only expressions and return values in the [0,1] range, though I concede that it wouldn't be as friendly for newbies.
B
35
S
8
G
8
Posts: 532
Reputation: 6,868

Post » Thu Mar 01, 2012 4:34 am

[QUOTE=Fimbul] "custom" transitions means we'll be able to write our own transition functions? That seems like a lot of work! The examples I showed you would be enough [for me, at least], also their formulas are publicly available.

Personally, I'd prefer if you wrote this as a purely mathematical plugin that didn't attempt to move stuff. It could be only expressions and return values in the [0,1] range, though I concede that it wouldn't be as friendly for newbies.[/QUOTE]

The toggle to ignore movement is also a TODO item.

There is already the function plugin if you want to write pure math functions in JS.

PS: If you were to look in the code you'll see the transition functions aren't that scary. They just compute cosines using a bit of wizardry to translate the lerp fraction to an angle in radians.GauVeldt2012-03-01 04:35:42
B
28
S
5
G
1
Posts: 30
Reputation: 1,889

Post » Wed Oct 23, 2013 2:46 pm

Hi,

I am new to Construct2 so I had some difficulty trying to add an ease-in transition on mouse click event. It worked fine with "ease-both ways". Please help me on this..
Thanks.
B
6
S
3
Posts: 5
Reputation: 946

Post » Mon Oct 28, 2013 12:07 am

Hi,very nice plugin making my life easier

Have you considered add the possibility of adjusting the effect of easing?

That is maybe the only thing, one could wish for, to make it work for all situations and have a more individual character of the transitions.

Sorry, I just saw: I had planned on adding support for custom transition functions at some point in the future. It is on the TODO list.

I guess, thats about, what I meant... awesome!

Keep up the good work!MultipleChoice2013-10-28 00:09:39
B
8
S
3
Posts: 197
Reputation: 1,207

Post » Tue Jan 07, 2014 4:17 pm

Hello Sir, how to disable/enable this behavior? Thank you :D
B
16
S
2
Posts: 39
Reputation: 717

Post » Sat Apr 05, 2014 11:22 am

Thank you so much. Nice work
B
206
S
27
G
13
Posts: 1,841
Reputation: 35,812

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: mixon00 and 3 guests