Animation

For questions about using Classic.

Post » Sun Jul 17, 2011 7:21 pm

I'm trying to get a button to change to a different frame when the mouse is over it. I got that working but now I want the button to change to the first frame when the mouse isn't over the button itself. The effect i'm trying to get is known as a mouse-over.mogey2011-07-17 19:22:14
B
4
G
1
Posts: 50
Reputation: 652

Post » Sun Jul 17, 2011 7:28 pm

Do the exact same thing but negate "Mouse is over button" and change its frame to 1. TadaaaTokinsom2011-07-17 19:28:27
Image
B
225
S
27
G
13
Posts: 1,774
Reputation: 18,024

Post » Sun Jul 17, 2011 7:47 pm

[QUOTE=Tokinsom] Do the exact same thing but negate "Mouse is over button" and change its frame to 1. Tadaaa[/QUOTE]
Wait how?
B
4
G
1
Posts: 50
Reputation: 652

Post » Sun Jul 17, 2011 8:03 pm

To negate a condition, right click it and select 'invert condition.'

Altogether it should look something like

+Mouse is over button
-Set frame to 2 (assuming that's highlighted)

+Mouse is NOT over button
-Set frame to 1 (assuming that's not highlighted)

The only problem with that is if you highlight one button then move the mouse directly to another instance of the same button then it might not go back to frame 1.
Image
B
225
S
27
G
13
Posts: 1,774
Reputation: 18,024

Post » Sun Jul 17, 2011 8:35 pm

Ohhhhhhhhhh thanks.
B
4
G
1
Posts: 50
Reputation: 652


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 3 guests