uniqueness and selection

For questions about using Classic.

Post » Sat Aug 14, 2010 12:05 pm

hello,

I would like to have the same idea as the 4 buttons have in this forum, when you post a new message: 4 buttons: load, save, preview, submit.
When you point at it with your mouse, it'll light up. When your mouse is not on it, it will be a regular button again.

In my game, the blocks are next to eachother.
In general, the code is:
- if mouse on block>highlight
- if mouse not on block>no highlight

This basically works, but the undesirable effect is, that when the mouse goes from block 1 to block 2, block 1 stays highlighted, because the mouse is still on "block" (although it is block 2).
B
16
S
5
G
7
Posts: 599
Reputation: 5,000

Post » Sat Aug 14, 2010 12:13 pm

Instead try

Always. Set block to not highlighted
If mouse over - highlight
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Sat Aug 14, 2010 12:22 pm

[quote="lucid":2pe4yh5k]Instead try

Always. Set block to not highlighted
If mouse over - highlight[/quote:2pe4yh5k]

This works, thanks!
B
16
S
5
G
7
Posts: 599
Reputation: 5,000


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 2 guests