jobjorgos
Member
I want for each obj_train_cart object to create an obj_inv_block at it own x and y, and that keeps on the x and y also every step after it has been created.
But now I get errors that say: variable obj not set when reading it in the step event.
What can I do?
OBJ_TRAIN_CART
Create Event:
obj = instance_create(x,y,obj_inv_block);
obj_self = self;
Step Event:
with obj
{
obj.x = obj_self.x;
obj.y = obj_self.y;
}
But now I get errors that say: variable obj not set when reading it in the step event.
What can I do?
OBJ_TRAIN_CART
Create Event:
obj = instance_create(x,y,obj_inv_block);
obj_self = self;
Step Event:
with obj
{
obj.x = obj_self.x;
obj.y = obj_self.y;
}