Sabnock
Member
another noob question,
whenever I use
inst = instance_create(x,y,obj_anything)
inst.shield= shield (or any variable you want to pass to the instance you are creating)
the variable is not available in the create event of the newly created instance and the only way I seem to be able to get it to work as I want is
inst = instance_create(x,y,obj_anything)
inst.a_variable = shield (or any variable you want to pass to the instance you are creating)
obj_anything
create event
alarm[0] = 1;
alarm[0] event
if shield == code here;
step event
more code;
what am I doing worng?
whenever I use
inst = instance_create(x,y,obj_anything)
inst.shield= shield (or any variable you want to pass to the instance you are creating)
the variable is not available in the create event of the newly created instance and the only way I seem to be able to get it to work as I want is
inst = instance_create(x,y,obj_anything)
inst.a_variable = shield (or any variable you want to pass to the instance you are creating)
obj_anything
create event
alarm[0] = 1;
alarm[0] event
if shield == code here;
step event
more code;
what am I doing worng?