var inst = instance_place(x+1, y, object)
if (inst != noone) {
inst.variable = true;
}
Thanks!You need to use the equivalent function that returns the id of the hit instance instead of just a confirmation that something has been hit, namely instance_place() using the same arguments as place meeting.
In this scenario, the created variable "inst" either holds the id of the hit object or the keyword "noone" (-4) if no collision occurred.Code:var inst = instance_place(x+1, y, object) if (inst != noone) { inst.variable = true; }