Hello everybody,
I've quite a little diffculty on something. Here is the recap :
I have an object obj_aaa_par with a function in his create event :
This object is parent of my second object : obj_aaa.
This one have this code in his create event :
This is the code. Now my problem : When i build my project, i have this error :
I dond't understand why.
I can override in my child object the function of my parent object, no ?
I've quite a little diffculty on something. Here is the recap :
I have an object obj_aaa_par with a function in his create event :
GML:
function generic_func(_var) constructor {
obj_idx = _var.object_index;
x = _var.x;
y = _var.y;
name = _var.name;
}
This one have this code in his create event :
GML:
event_inherited();
function generic_aaa_func(_var) : generic_func(_var) constructor {
type = _var.type;
}
GML:
ERROR in
action number 1
of Create Event
for object <undefined>:
Error on load
Unable to find function gml_Script_generic_func
I can override in my child object the function of my parent object, no ?