flyinian
Member
Object1 will spawn correctly, while object2 won't be affected by the given coordinates given in its create event.
Object2 will remain at the x & y coordinates that it has in the room editor.
I have many other object using this system and it seems to work fine.
I gave object2 coordinates of my UI background and it seemed to spawn at the right location.
I made a new project and tested this and same results happened.
object1:
create:
Draw:
object2:
Create:
Draw:
Thank You.
Object2 will remain at the x & y coordinates that it has in the room editor.
I have many other object using this system and it seems to work fine.
I gave object2 coordinates of my UI background and it seemed to spawn at the right location.
I made a new project and tested this and same results happened.
object1:
create:
GML:
x = 0;
y = 0;
GML:
draw_sprite(spr_Placeholder1, 0, object1.x, object1.y);
object2:
Create:
GML:
x = object1.x + 10;
y = object1.y + 10;
GML:
draw_sprite(spr_Placeholder2, 0, object2.x, object2.y);
Last edited: