Making a bouncing effect using Tweener

326 Views Asked by At

I would like to bounce my actor on y-axis for two Seconds following a button release event.

I don't know how I can do that using Tweener.

Gnome shell 3.4.

Thanks for any help,

2

There are 2 best solutions below

0
The_Cute_Hedgehog On

I gave up trying that effect. Instead using Tweener (imports.gi.Tweener), I simply set the opacity of the object from 0 to 255 in 'easeQuadEffect'.

0
Paul M Edwards On

GPaste Integration does what you want. Inspecting the code may be informative.

Search for "Tweener" in the gpaste_integration.js file.