William Garrison
Member
So simple enough. I am trying to make a parent asset that utilizes the in room variable for what object is being controlled and/or called. But the game doesn't seem to be recognizing it. So here is the setup...
Inside the Step Event
Inside the room the variable "_NPC" is set to the object I want to call in. It triggers fine, just never creates the object. It is worth nothing that if I replace the _NPC with the actual object name it works as expected.
Inside the Step Event
GML:
if (triggered = 1) {
instance_create_layer(oHero.x+150, oHero.y, "Hero", _NPC);
with(_NPC) { image_xscale = -1; }
triggered = 0;
instance_destroy();
}