J
jr carey
Guest
I'm having some very strange issues while using the "with statement" heres my code:
with(info.up1)
{
action_sprite_set(spr_orbit_upgrade,5,0);
} // this code is in orbit_upgrade
the problem I'm having is its changing my path object lol, when its suppose to change the upgrade object ID`s sprite, that's what the "up1" is, because I'm creating an instance in the object "info".
but for some reason the with statement is targeting a different object that isn't even referenced, why is this? am I not understanding the ID system correctly? and if it helps my code for creating the upgrade is
up1 = instance_create(888,420,orbit_upgrade); // this code is in info
with(info.up1)
{
action_sprite_set(spr_orbit_upgrade,5,0);
} // this code is in orbit_upgrade
the problem I'm having is its changing my path object lol, when its suppose to change the upgrade object ID`s sprite, that's what the "up1" is, because I'm creating an instance in the object "info".
but for some reason the with statement is targeting a different object that isn't even referenced, why is this? am I not understanding the ID system correctly? and if it helps my code for creating the upgrade is
up1 = instance_create(888,420,orbit_upgrade); // this code is in info