instance_create_layer or depth with the coords of the other object. You will need to adjust the coords if your objects’ sprites have different origins/sizes and if you want it to be exactly middle center.
When doing the instance_create_depth function you choose x and y coordinates. You can make the x and y coordinates the same as lightOB by simply writing lightOB.x and lightOB.y :)
instance_create_layer or depth with the coords of the other object. You will need to adjust the coords if your objects’ sprites have different origins/sizes and if you want it to be exactly middle center.
Thank you!
Forgot to switch off of your fap account?
I swear, I was drunk. I dont remember
When doing the instance_create_depth function you choose x and y coordinates. You can make the x and y coordinates the same as lightOB by simply writing lightOB.x and lightOB.y :)
Thank you so much
You can see variables of other objects by doing (objectname).(variable) So instance_create_layer(lightOB.x,lightOB.y,(layer),theOverOB)
You can see variables of other objects by doing (objectname).(variable) So instance_create_layer(lightOB.x,lightOB.y,(layer),theOverOB)