Change cursor to hand when over object not working for me

Discussion and feedback on Construct 2

Post » Mon Sep 28, 2015 7:52 pm

Hey

I have: system: every tick: cursor is over sprite1: Mouse set cursor to hand
X cursor is over sprite1: Mouse set cursor to normal

That works all fine. But when i do it like this only one of them works. What am i doing wrong?

system: every tick: cursor is over sprite1: Mouse set cursor to hand
X cursor is over sprite1: Mouse set cursor to normal
cursor is over sprite2: Mouse set cursor to hand
X cursor is over sprite2: Mouse set cursor to normal
B
3
Posts: 6
Reputation: 189

Post » Mon Sep 28, 2015 8:17 pm

If all you need is "hand" and "normal" then just use families.

Put sprite 1, 2, and anything else you want in a family. Call it what you want.

Then do something like this:

cursor is over family- set cursor to hand
else- set cursor to normal

Get rid of every tick.
B
83
S
30
G
35
Posts: 340
Reputation: 23,096

Post » Mon Sep 28, 2015 8:19 pm

Ah thanks! That might work! Thanks for helping, i wouldn't have thought of it! ;-)
B
3
Posts: 6
Reputation: 189


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 11 guests