R
RealsLife
Guest
So I've an object with a parent object but it doesn't recognise my code of that parent when I compile
All the code inside obj_vbar doesn't recnognise anything but I use a lot of the parent object code inside obj_vbar.
So why is this? I thought If I put a parent inside an object all the code would just be used inside that object and that I could override all the variables how I see necessary.
EDIT: The parent object is just variables and code that come before object_vbar
Code:
slider_value = obj_options_menu_controller.surf_height;
instance_create(0,0,obj_vbar);
obj_vbar_parent.scroll_power = 10;
obj_vbar_parent.slider_px_height = sprite_height;
obj_vbar_parent.real_slider_height = slider_value;
So why is this? I thought If I put a parent inside an object all the code would just be used inside that object and that I could override all the variables how I see necessary.
EDIT: The parent object is just variables and code that come before object_vbar