Not a question, just an observation.
In case you have a On mouse over event that show a text object, then you may use the On mouse out event to hide the same text object.
Then if you use the On mouse click event to hide the object, then the On mouse out event will not be detected.
To remove the text object, another hide object event could be added to the On mouse click event list.
On mouse out event when hiding an object
- airsoftsoftwair
- Posts: 5635
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: On mouse out event when hiding an object
Don't understand what is the problem here, please elaborate
Re: On mouse out event when hiding an object
Not really a problem once you know how it works.
Lets say you are making a point and click game. You have Key on screen and use the On mouse above to show a popup text "Key", and then use the On mouse out to hide that popup text.
Then you want to be able to pick up the Key by clicking on it, so you hide the key. Now the popup text will stay on screen when moving the mouse out, since the On mouse out will not be triggered for the hidden object.
Lets say you are making a point and click game. You have Key on screen and use the On mouse above to show a popup text "Key", and then use the On mouse out to hide that popup text.
Then you want to be able to pick up the Key by clicking on it, so you hide the key. Now the popup text will stay on screen when moving the mouse out, since the On mouse out will not be triggered for the hidden object.
- airsoftsoftwair
- Posts: 5635
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: On mouse out event when hiding an object
Ok, now I understand. Might make more sense to trigger "OnMouseOut" in that case too but of course implementing such a thing would also require a new compatibility mode because old projects expect the old behaviour so I'm not sure if it's worth the effort.
Re: On mouse out event when hiding an object
If it is easy to implement, then I guess it could be useful to be able to manually trigger some events.
However, OnMouseOut can also be doing things that you don't want to get triggered anymore after item is removed.
Lets say you have a bomb that will explode after third OnMouseOut. Now you obviously don't want this to happen at point when you removed it already.
However, OnMouseOut can also be doing things that you don't want to get triggered anymore after item is removed.
Lets say you have a bomb that will explode after third OnMouseOut. Now you obviously don't want this to happen at point when you removed it already.
Re: On mouse out event when hiding an object
Isnt such a behaviour provision by game author ?
I.e. picking= hiding object . Also close menu
This sound very specific and probably breaking other "correct working" code
I.e. picking= hiding object . Also close menu
This sound very specific and probably breaking other "correct working" code
Christos
Re: On mouse out event when hiding an object
@plouf
Do notice this is talking about the Designer, not Hollywood.
I can see how it could be handy for someone using Designer to be manually able to trigger one of the other events, like OnMouseOut event of object.
Do notice this is talking about the Designer, not Hollywood.
I can see how it could be handy for someone using Designer to be manually able to trigger one of the other events, like OnMouseOut event of object.