B
Bucka-Zorkh
Guest
Hi,
I'm trying to make four instances of the same object do something in a certain order. But since the objects are created at the same time (when the room starts) I can't, that I know of, assign them a unique variable value that I can then use to say in which order the instances should execute their code (with a For loop).
I could probably use the Instance creation code, in the room editor, but if possible, I would like to assign them the value from the object or a control object.
Maybe I can use the Instances ID's, but I don't know much about that.
I have obj_BluePrint and four instances of this object is created when the room starts.
I want the First BluePrint to get a value from a ds_list. Then I remove that value from the list, so that the next BluePrint can't get the same value.
If could just set the variable "order" to 0, 1, 2 and 3, I know how to do everything else.
I'm trying to make four instances of the same object do something in a certain order. But since the objects are created at the same time (when the room starts) I can't, that I know of, assign them a unique variable value that I can then use to say in which order the instances should execute their code (with a For loop).
I could probably use the Instance creation code, in the room editor, but if possible, I would like to assign them the value from the object or a control object.
Maybe I can use the Instances ID's, but I don't know much about that.
I have obj_BluePrint and four instances of this object is created when the room starts.
I want the First BluePrint to get a value from a ds_list. Then I remove that value from the list, so that the next BluePrint can't get the same value.
If could just set the variable "order" to 0, 1, 2 and 3, I know how to do everything else.