Hi!
I'm trying to write up a script that displays a larger image (actor bust) while in combat, but if you attack - then the bust will change to an image that shows the player actually attacking!
Here is what I have so far:
//=============================================================================
// battleImage.js
//=============================================================================
(function() {
Scene_Battle.prototype.commandSkill = function(){
var action = BattleManager.inputtingAction();
var picName = action.skillId.meta.picture_name;
var picX = action.skillId.meta.picture_x;
var picY = action.skillId.meta.picture_y;
// code to show image...
};
})();
I'm trying to set it up so that I can use note tags within the skills to change the actor's image. Am I doing this correctly? Also, how do I show an image on the screen given the name of the picture and the X + Y coordinates?
I'm trying to write up a script that displays a larger image (actor bust) while in combat, but if you attack - then the bust will change to an image that shows the player actually attacking!
Here is what I have so far:
//=============================================================================
// battleImage.js
//=============================================================================
(function() {
Scene_Battle.prototype.commandSkill = function(){
var action = BattleManager.inputtingAction();
var picName = action.skillId.meta.picture_name;
var picX = action.skillId.meta.picture_x;
var picY = action.skillId.meta.picture_y;
// code to show image...
};
})();
I'm trying to set it up so that I can use note tags within the skills to change the actor's image. Am I doing this correctly? Also, how do I show an image on the screen given the name of the picture and the X + Y coordinates?