Mouse over query

For questions about using Classic.

Post » Mon May 25, 2009 11:38 am

Hi, I'm looking back into construct, and prior i never did much besides make a few things, and only ever finished on project which i now don't have.

Anyhow, I'm making menus and i want the following:

I mouse over an Object, or in this case a sprite, and a dialogue box appears (at an image point i have made) - So far so good.

But when i take my mouse off of the sprite (in this case) , i want the dialogue box to disappear, which is isn't.

I am using the "When mouse if over" function of the keyboard and mouse.
I tried putting in a background, and when i mouse over the background (which i would assume the sprite would take priority since they overlap) it would go offscreen. However, The background / Sprite is treated as the most demanding for the event, so the mouse will stay offscreen if i try this method.

How can i work around this issue?

Thanks.
B
1
G
3
Posts: 4
Reputation: 833

Post » Mon May 25, 2009 11:47 am

How about?
mouse is not over sprite
>dialogue box destroy

or set opacity
or set visability
Image Image
B
161
S
48
G
89
Posts: 7,347
Reputation: 66,249

Post » Mon May 25, 2009 11:56 am

There is not option for "mouse is not over sprite" that i can see :( (That would have been the logical steps for me, and i check this previously)
B
1
G
3
Posts: 4
Reputation: 833

Post » Mon May 25, 2009 12:13 pm

You have to invert the condition and it will act like a mouse is not over condition.

To invert it right click the condition and select invert.
B
5
S
2
G
4
Posts: 632
Reputation: 2,829

Post » Mon May 25, 2009 12:40 pm

Thanks! :)
B
1
G
3
Posts: 4
Reputation: 833

Post » Mon May 25, 2009 9:54 pm

or the system else condition
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Mon May 25, 2009 10:28 pm

that would work but else seems to be messed up lately so I just use inverted is it fixed in .99?
B
5
S
2
G
4
Posts: 632
Reputation: 2,829

Post » Wed May 27, 2009 1:06 am

not sure what you mean aeal

this is 98:
[url:ua0uilk3]http://dl.getdropbox.com/u/1013446/mouseover98.cap[/url:ua0uilk3]
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 4 guests