so as a result the buttons dont react or draw properly. the code is thus:
//in the character main character create/ var_creator=self.id //in the f1 event/ var_myinventory = instance_create(view_xview+512,view_xview+400,obj_inventory) var_myinventory.var_creator = var_creator//this part all works/ //in the create event of obj_inventory/ var_buttonid1 = instance_create(view_xview+165,view_yview+315,obj_endobutton) var_buttonid1.var_creator = var_creator //at this point obj_endobutton is created but obj_endobutton.var_creator = 0 instead of inheriting the id from obj_inventory/ive tried several variations (im pretty new to code) ...anyway im struggling here, an i cant seem to get it on my own. maybe some advice? thanks.
Edited by Piwaket, 11 May 2012 - 10:26 AM.