Hi,
So I have some NPCs (events) with dynamic pictures based on a variable. I have the picture set to blank in the event itself, but then the movement route sets the picture on each event page with this script:
$gameMap.event(this._eventId).setImage('maids', $gameVariables.value(481));
This works great except that whenever the event loads, or I switch to the next page, the event disappears for a second or two before the picture loads. Any ideas how to fix this or work around it?
I have included screen captures of the event below.
Thanks!
PS In case your wondering this is the second script in the move route:
var intTime = $gameVariables.value(33); if (this.pos(2, 7)) {this.setDirection(8); $gameSwitches.setValue(489, true)}; if (this.pos(10, 5)) {this.setDirection(8); $gameSwitches.setValue(489, true)}; if (this.pos(14, 5)) {this.setDirection(8); $gameSwitches.setValue(489, true)}; if ([0,1,5,9].indexOf(intTime) >= 0) this.moveStraight(this.findDirectionTo(2, 7)); else if ([2,3,6,10].indexOf(intTime) >= 0) this.moveStraight(this.findDirectionTo(10, 5)); else if ([11,7,8,4].indexOf(intTime) >= 0) this.moveStraight(this.findDirectionTo(14, 5));
So I have some NPCs (events) with dynamic pictures based on a variable. I have the picture set to blank in the event itself, but then the movement route sets the picture on each event page with this script:
$gameMap.event(this._eventId).setImage('maids', $gameVariables.value(481));
This works great except that whenever the event loads, or I switch to the next page, the event disappears for a second or two before the picture loads. Any ideas how to fix this or work around it?
I have included screen captures of the event below.
Thanks!
PS In case your wondering this is the second script in the move route:
var intTime = $gameVariables.value(33); if (this.pos(2, 7)) {this.setDirection(8); $gameSwitches.setValue(489, true)}; if (this.pos(10, 5)) {this.setDirection(8); $gameSwitches.setValue(489, true)}; if (this.pos(14, 5)) {this.setDirection(8); $gameSwitches.setValue(489, true)}; if ([0,1,5,9].indexOf(intTime) >= 0) this.moveStraight(this.findDirectionTo(2, 7)); else if ([2,3,6,10].indexOf(intTime) >= 0) this.moveStraight(this.findDirectionTo(10, 5)); else if ([11,7,8,4].indexOf(intTime) >= 0) this.moveStraight(this.findDirectionTo(14, 5));