How do I set cursor to hand

Get help using Construct 2

Post » Sat Aug 29, 2015 10:44 pm

Hello, how are everyone? hope great :D

Well, The title sounds really easy but what I want to do is on over multiple elements make the cursor to hand, else have it to normal, the problem is that when I set it as in the image, only the last cursor (AlertAccept) is working, the others i think they go to else directly instead of reading my other conditions.

Image

Thank you for your help everyone. :mrgreen:
B
4
Posts: 3
Reputation: 208

Post » Sat Aug 29, 2015 11:17 pm

I'd have to look at project file to really see what's going on. Other wise that should work as far as I can see.
B
23
S
8
Posts: 115
Reputation: 2,640

Post » Sat Aug 29, 2015 11:20 pm

you can use "or Block"

Image

or

you can put this sprites in family
Image
B
63
S
23
G
7
Posts: 1,480
Reputation: 10,796

Post » Sat Aug 29, 2015 11:51 pm

@Cedriking

Yep, korbaach is correct. You should only have one else. Because the code executes EXACTLY the way it is written.

If you read it through, you will see it first either sets it to the hand or normal for the AlertClose, then it will set it to the hand or normal for the AlertCancel, then it will set to the hand or normal for Rooms, then it will set it to the hand or normal for AlertAccept.

So, if the mouse is over AlertClose, it WILL set it to the hand, but then the next three sections of code will all set it back to normal, because it will execute the three else clauses below the AlertClose block... (same goes for the AlertCancel and Rooms code). Only the last block doesn't get undone.
B
94
S
33
G
20
Posts: 438
Reputation: 17,615

Post » Fri Sep 04, 2015 2:41 pm

Thanks a lot, I didnt notice that there were a OR block. Now everything is working fine, thank you guys.
B
4
Posts: 3
Reputation: 208

Post » Fri Sep 04, 2015 2:52 pm

The "else" construct could have worked too, but it should have been looking like this :
Image
B
67
S
28
G
24
Posts: 970
Reputation: 18,675


Return to How do I....?

Who is online

Users browsing this forum: ivanski1983 and 4 guests