mouse over object doesn't obey picking

For questions about using Classic.

Post » Wed Oct 12, 2011 11:58 am

mouse/keyboard object's condition Mouse is Over object condition ignores current picking with strange results:

http://dl.dropbox.com/u/1013446/mousekeyboardglitch.cap

the object variables are numbered 1 through 4
the second condition picks the ones with less than 3 so two of them are faded to 50 opacity, then the check for mouseover should only activate if one of those semitransparent one's has the mouse over it. instead it adds anything not already picked into the picking list

i will have a look at the runtime and see if i can find a way to fix this later, but if anyone has an idea how to fix this just using construct and the cap file, I'd appreciate it. I don't mind if I need extra pv's and global variables just to do some fake picking thing
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Wed Oct 12, 2011 2:42 pm

Actually, its acting as I would expect. Comparing the variable places those objects into the sol, and with the mouse is over as a sub-event the sol is carried over.
I think what you need to do is have the mouse is over as your first condition. You can then filter from the pvs that way.

+ MouseKeyboard: Mouse is over Sprite
+ Sprite: Value 'Variable 1' Equal to 3
-> Sprite: Set opacity to 50
-> Sprite: Set angle to 45
Image Image
B
161
S
48
G
90
Posts: 7,356
Reputation: 66,767

Post » Wed Oct 12, 2011 10:27 pm

I think that might help you :D

selection.cap
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 5 guests