Hello fellow RPG Comrades,
I want to change the Player's appearance when, let's say, he puts a new helmet on.
But, instead of changing the entire charset,
I want to add another charset layer on top of the player.
The second charset layer would only show the helmet in various positions.
That way, I would save myself the hassle of creating an entire new charset for every single item combination.
I searched for plugins and posts, but so far have not found anything. Sorry if I missed something and this is a redundant post.
In rpg_sprites, line 2329 I found the method for loading the charset of $gamePlayer.
JavaScript:
Spriteset_Map.prototype.createCharacters = function() {
this._characterSprites = [];
$gameMap.events().forEach(function(event) {
this._characterSprites.push(new Sprite_Character(event));
}, this);
$gameMap.vehicles().forEach(function(vehicle) {
this._characterSprites.push(new Sprite_Character(vehicle));
}, this);
$gamePlayer.followers().reverseEach(function(follower) {
this._characterSprites.push(new Sprite_Character(follower));
}, this);
this._characterSprites.push(new Sprite_Character($gamePlayer));
for (var i = 0; i < this._characterSprites.length; i++) {
this._tilemap.addChild(this._characterSprites[i]);
}
};
I tried adding a new charset Sprite to SceneManager._scene._spriteset._characterSprites and set the x, y coordinates to the player. However, the charset keeps returning to it's original map position. So I couldn't even attempt to make the charset move along with the player, while being on top.
I'm sure there is a plugin for this I haven't found yet.
Either way as always I'm thankful for any help.
Kind regards,
Lanzy