How do I change cursor style

Get help using Construct 2

Post » Sun Jul 12, 2015 4:24 am

Hi,
First of all thanks everyone that whatever question i post on this forum.. i get answer of that... THANKYOU...

Today i want to know that how can i change my cursor style when cursor is on particular object... actually i know which event should be used for this.... i:e ( Mouse > cursor is over "object" = Mouse > set cursor to Hand )..
By using this event when my cursor is over that "object".. then it get changes to Hand, but problem is that it then remains HAND forever....
What i want is that till the time my cursor is on that "object" it should remain Hand... and when cursor is not on that "object" it should get back to normal.....

Kindly Help me out for that..
B
4
Posts: 13
Reputation: 226

Post » Sun Jul 12, 2015 5:24 am

Use the same condition but, invert it (x).

Mouse > Curser > Is over object(x) > set curser to (whatever)
Image
B
75
S
23
G
3
Posts: 673
Reputation: 9,283

Post » Sun Jul 12, 2015 7:20 am

Or you could add an else event below
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sun Jul 12, 2015 7:50 am

LittleStain wrote:Or you could add an else event below


Hello sir @LittleStain , thanks so much that you replied to my post., your suggestion helped me.. but actually i have 4 objects on my layout and i want same setting for all of them... but this one is only working for one object....
B
4
Posts: 13
Reputation: 226

Post » Sun Jul 12, 2015 8:02 am

I would put the 4 objects in a family
If it's impossible to put the 4 objects in a family and use one event based on that
you could add conditions to the else event or use an 'or' block

-cursor is over sprite1
or
-cursor is over sprite2
or
-cursor is over sprite3
or
-cursor is over sprite4
> set cursor to hand
-else
>set cursor to normal


-cursor is over sprite1
> set cursor to hand
-else
-cursor is over sprite2
> set cursor to hand
-else
-cursor is over sprite3
> set cursor to hand
-else
-cursor is over sprite
> set cursor to hand
-else
>set cursor to normal
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sun Jul 12, 2015 8:26 am

Thanks so much sir @LittleStain . I put all objects in a family... You are a master... :)
B
4
Posts: 13
Reputation: 226


Return to How do I....?

Who is online

Users browsing this forum: amazingdream, lordsas, mekonbekon and 66 guests