Hello everyone,
I recently switched from RPG Maker VX Ace to MV. In VX Ace I could use a script call in an event to change the sprite sheet for an actor, allowing me to dynamically change sprite sheet using variables. Like this:
In one event I call this script.
And then, in an event later I could change the actor's sprite sheet to the one defined in the $newSprite variable (and leave the face graphic unchanged) like this.
And now I was wondering, is there a JavaScript variant of this code to change actor sprite sheet for MV?
Thanks!
I recently switched from RPG Maker VX Ace to MV. In VX Ace I could use a script call in an event to change the sprite sheet for an actor, allowing me to dynamically change sprite sheet using variables. Like this:
In one event I call this script.
Code:
$newSprite = newSpriteFile
And then, in an event later I could change the actor's sprite sheet to the one defined in the $newSprite variable (and leave the face graphic unchanged) like this.
Code:
$game_actors[1].set_graphic($newSprite,0,$game_actors[1].face_name, $game_actors[1].face_index)
And now I was wondering, is there a JavaScript variant of this code to change actor sprite sheet for MV?
Thanks!