Mouse Enter

From Game Editor

Revision as of 12:14, 10 July 2009 by Skydereign (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This event is triggered when the mouse moves over an actor, so if the actor is covered by another, due to zdepth, then the event won't trigger. This event trigger is usually not used, unless with certain Actor Types, or when creating buttons. It is useful when signifying that the mouse has entered, in which you would set the rgb values.

This is usually used with its counterpart, Mouse Leave. These are usually used oppositely, one resetting what the other did. This way, the coloration of the button, if that is how you use it, will still be constant.

A simple example of how to make an easily identifiable button would be to have a mouse enter set the colors off, in this case red.

button -> Mouse Enter -> Script Editor

r=255;
g=0;
b=0;