How do I set the fade 'wait' time to mouse over?

Get help using Construct 2

Post » Sat Jul 26, 2014 4:18 pm

Hi,
I'm trying to make a sprite 'fade-in' when mouse over and 'fade-out' when [not] mouse over.

Having all sorts of troubles. Could swear I used to know how to do this :|
B
7
S
1
Posts: 32
Reputation: 514

Post » Sat Jul 26, 2014 8:52 pm

Wrenfield wrote:Hi,
I'm trying to make a sprite 'fade-in' when mouse over and 'fade-out' when [not] mouse over.

Having all sorts of troubles. Could swear I used to know how to do this :|

Better use opacity, it has more functions.
You do not have the required permissions to view the files attached to this post.
B
22
S
9
G
7
Posts: 421
Reputation: 6,543

Post » Sat Jul 26, 2014 9:21 pm

@Sisyphus
Great example.

We also can use :

Mouse is over sprite - sprite set opacity to self.opacity+1
System Else - sprite set opacity to self.opacity-1
B
60
S
10
G
10
Posts: 1,013
Reputation: 9,165

Post » Sat Jul 26, 2014 9:45 pm

A0Nasser wrote:@Sisyphus
Great example.

We also can use :

Mouse is over sprite - sprite set opacity to self.opacity+1
System Else - sprite set opacity to self.opacity-1

Thanks, i just try to make capx more understandable, sure it's necessary to use else. And we can't forget to prevent actions from happen continuously. Thanks for correcting me :)
You do not have the required permissions to view the files attached to this post.
B
22
S
9
G
7
Posts: 421
Reputation: 6,543

Post » Sun Jul 27, 2014 1:02 am

Much obliged. Thank you both.
B
7
S
1
Posts: 32
Reputation: 514


Return to How do I....?

Who is online

Users browsing this forum: draiza, Magistross, R0J0hound and 1 guest