Mouse event "Mouse over/out"

Discussion and feedback on Construct 2

Post » Tue Jan 29, 2013 2:25 pm

Currently the mouse object have "Cursor is over" event that can help to cover "mouse over/out", but this event is causing a f*king problem for me:

When using "Cursor is over" to chance the mouse cursor to "Hand", and using else to set to "Normal", everything works fine....

But when using multiples Cursor is over for the same thing.... others events are always triggering "Else", setting the cursor back to "Normal"

I can fix this like in this image, where I put the other event in the first event else...


But with more and more events this become... unfriendly...

So why not implement "mouse over" and "mouse out"? This way the event will trigger only one time, solving the problem, and helping performance, since one time against an event per mouse move is a very big difference.
B
10
Posts: 19
Reputation: 1,459

Post » Tue Jan 29, 2013 3:14 pm

'Mouse is over object' followed by 'Trigger once' is equivalent to 'On mouse in', and negated 'Mouse is over object' followed by 'Trigger once' is equivalent to 'On mouse out'. Is that what you're after?
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580

Post » Tue Jan 29, 2013 3:24 pm

Yes, this is exactly what I'm looking for....

You have my thanks.
B
10
Posts: 19
Reputation: 1,459

Post » Fri Jun 21, 2013 10:28 am

Hi wilsonglasser,
   
   I'm new to construct2. I'm trying to develop a game in it. In that, i want to move the object depends on the cursor movement(mouse over) and while click on that object it has to fall down.

   What are all the steps I have to do to move the object with respect to the mouse over event.

   I am looking forward. Please help me to do that.

   Thanks in advance....
B
4
Posts: 12
Reputation: 249

Post » Tue Jul 23, 2013 6:55 pm

Thanks Ashley! I had the same issue. I tried to use OR blocks to add all mouseover>hand items in one block but that did not work either.

I use one event for every button now and added Trigger Once and it works fine now.
B
47
S
14
G
5
Posts: 635
Reputation: 8,017

Post » Wed Aug 07, 2013 4:21 pm

How do you perform a negated 'mouse is over object' action. I can't seem to find it in the Add event box, mouse section?siclogic2013-08-07 16:31:14
B
3
Posts: 3
Reputation: 181

Post » Wed Aug 07, 2013 8:21 pm

Never mind, I found the answer. You right click and select "Invert".
B
3
Posts: 3
Reputation: 181


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 8 guests