EaseTween with mouse condition

Get help using Construct 2

Post » Fri Jun 14, 2013 3:24 pm

Hi,
I am trying to use EaseTween with 'mouse cursor is over object' to create a tween where the sprite scales up when mouse is over and scales down when the mouse is not over object.

Can someone post a capx with an example, I have been trying various ways but can't seem to figure it out.

Im not sure if this can be done with one tween using reverse or maybe requires two tweens.

Thanks very much.

JKID.
B
6
Posts: 16
Reputation: 307

Post » Fri Jun 14, 2013 6:48 pm

put a sprite position to mouse.x and mouse.y and when that sprite is overlapping the other sprite then have it grow then
B
39
S
10
G
7
Posts: 514
Reputation: 9,546

Post » Sat Jun 15, 2013 9:34 pm

So your saying if I map a sprite to x,y on a mouse it will behave differently ? surely the default mouse over should be the same ? at work will check later thanks for the reply btw. I really only wanted a mouse off to reverse a tween.

JKID
B
6
Posts: 16
Reputation: 307

Post » Sun Jun 16, 2013 6:37 am

I think something broke in that last patch of EaseTween I uploaded JKID, I will try to fix it today...
B
36
S
6
G
1
Posts: 185
Reputation: 3,715

Post » Sun Jun 16, 2013 7:03 am

I fill in a temporary fix for it, later on I think I'm going fully restructure the behavior

https://dl.dropboxusercontent.com/u/55358831/lunarray.tween.c2addon

@JKID About the sizing problem, is it something like this?

https://dl.dropboxusercontent.com/u/55358831/helping/sizeup_down.capx
B
36
S
6
G
1
Posts: 185
Reputation: 3,715

Post » Sun Jun 16, 2013 12:09 pm

@lunarray

Yes that's the ticket thanks.
Is it possible for the tween to reverse at the exact point the mouse leaves, it seems to jump/glitch if the mouse out is too soon.
Cheers,
JKID.

Edit.
I have managed to get this working using force reverse, however would it be possible to have a 'force reverse to initial' so that the reverse goes to the first value i.e the start. The problem is that when the mouse leaves the tween goes beyond the first value.

Thanks,
JKID.JKID2013-06-16 12:41:05
B
6
Posts: 16
Reputation: 307

Post » Mon Jun 17, 2013 6:33 pm

Try this one @JKID, I'm making a new tween behavior. It is still in the experimental phase, but if you don't mind I'll put it here for you to test/use.

https://dl.dropboxusercontent.com/u/55358831/lunarray.litetween.zip

And this is some example on how to use it

https://dl.dropboxusercontent.com/u/55358831/helping/litetween.capxlunarray2013-06-17 18:55:17
B
36
S
6
G
1
Posts: 185
Reputation: 3,715

Post » Mon Jun 17, 2013 9:26 pm

@lunarray

So far works perfectly, I will continue testing this evening and report back.

Thank you.

JKID. :)




B
6
Posts: 16
Reputation: 307

Post » Tue Jun 18, 2013 12:15 pm

@lunarray

Opacity seems to be broken here.
Also strange behavior when using two litetween on the same sprite.

Other than that reverse from current is working great

JKID.
B
6
Posts: 16
Reputation: 307

Post » Tue Jun 18, 2013 2:32 pm

@JKID

Ah yes, I forgot to implement the opacity tween O.o, it is now fixed

About two litetween on same sprite, I have fixed it too...

Here it is, the fixed one...
https://dl.dropboxusercontent.com/u/55358831/lunarray.litetween.zip

Thanks for helping me test this behavior... :>lunarray2013-06-18 14:34:32
B
36
S
6
G
1
Posts: 185
Reputation: 3,715

Next

Return to How do I....?

Who is online

Users browsing this forum: bikachu, blaze ritter, Fenix18, iEatwe, MAVERICK, nad10221 and 9 guests