K
Kabutsk
Guest
Hi, this is likely a noob question but i'm trying to get a variable from an instance, but for some reason it doesn't use the variable.
if (position_meeting(x - 60 , y + 10, obj_tile) && stop = false) {
with position_meeting(x - 60, y + 10, obj_tile) { // Adding bomb count to tile
self.rowbomb = self.rowbomb + other.bomb
}
}
i'm trying to use "self" for the instance calling the command, but i think it's using obj_tile as "self".
can anyone help with this? I can't use instance ID's since it's in a randomly generated field.
if (position_meeting(x - 60 , y + 10, obj_tile) && stop = false) {
with position_meeting(x - 60, y + 10, obj_tile) { // Adding bomb count to tile
self.rowbomb = self.rowbomb + other.bomb
}
}
can anyone help with this? I can't use instance ID's since it's in a randomly generated field.