How do I change mouse cursor for several families

Get help using Construct 2

Post » Thu Jun 23, 2016 9:42 am

Hi!

Do anyone have any suggestions on how to change the mouse cursor to a hand for several different families?

If I do for example:

Cursor is over Menu(family) -> Set cursor to Hand

Cursor is NOT over Menu(family) -> Set cursor to Normal


Cursor is over Objects(family) -> Set cursor to Hand

Cursor is Not over Objects(family) -> Set cursor to Normal

The only one that will work is the Objects one, because its triggered last.
How do I get around this? Any tips?

Thanks for any help! :)
Image
B
12
S
3
Posts: 40
Reputation: 847

Post » Thu Jun 23, 2016 11:20 am

Hey @adventurist hi.

Just use the make "or" block

Cursor is over Menu(family)
"or"
Cursor is over Objects(family)

Set cursor to Hand

else

Set cursor to Normal.

Cheers!
B
36
S
15
G
1
Posts: 59
Reputation: 3,441

Post » Thu Jun 23, 2016 11:39 am

Afraid that is not gonna work.

Cursor is over Menu(family)
Set cursor to Hand
else
Set cursor to Normal.

If this is the only cursor change happening.
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Thu Jun 23, 2016 11:42 am

Actually my blocks consists of two conditions:

Layer Objects1 is visible
Cursor is over Objects1(family) -> Set cursor to Hand

Layer Objects2 is visible
Cursor is over Objects2(family) -> Set cursor to Hand

etc.

So "or" blocks wouldn't work here unfortunately.
Image
B
12
S
3
Posts: 40
Reputation: 847

Post » Thu Jun 23, 2016 12:07 pm

Make a family more containing objects1 & objects2 ... lets say .. FamilieAll

Layer Objects1 is visible
or
Layer Objects2 is visible

sub ... Cursor is over FamilieAll
Set cursor to Hand
else
Set cursor to Normal.
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Thu Jun 23, 2016 12:47 pm

Ok @adventurist first of all the first method that i mention before the one with the "or" block ,works fine for your first post conditions.
For your second post conditions you need to add a little bit of salt .

So first post capx http://www.filedropper.com/simplecursor

And second post capx http://www.filedropper.com/simplecursor2

Cheers.
B
36
S
15
G
1
Posts: 59
Reputation: 3,441


Return to How do I....?

Who is online

Users browsing this forum: Armench, Artcadev, farsen, mariusvm, TheRealDannyyy and 11 guests