event_inherited() (Game Maker)


(Game Maker 6.1, 7)

event_inherited - call the inherited event of an object


event_inherited ( )

event_inherited() calls the inherited event of an object. If you declare any code in the event of a child object, Game Maker will not include the code from the parent object's event. event_inherited() allows you to write code in the child object and run the code in the parent.

It accepts no arguments.


Example of Use

//in the creation event
hspeed = -2;

If the parent object in this example had code you wanted to reuse in the child object, except you wanted to change the hspeed, the code in the example will allow you to do so.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution 2.5 License.