- Joined
- Mar 13, 2012
- Messages
- 185
- Reaction score
- 35
- First Language
- English
- Primarily Uses
- RMMV
Hi all,
I have some images in a new folder I created in an original folder, each one with the exact name of an actor.
I can't figure out what I'm doing wrong in loading and placing the images and was wondering if someone might be able to tell me the proper way to do it?
This is what I'm added so far to try to load and place the images so far, and I can tell it's quite incorrect, based on the number of errors I keep seeing.
The images are 290x113 if that makes any difference, and I'm trying to place three of them on the Battle Screen in such a way that the Battle Status information will appear ontop of them.
Thanks in advance!
I have some images in a new folder I created in an original folder, each one with the exact name of an actor.
I can't figure out what I'm doing wrong in loading and placing the images and was wondering if someone might be able to tell me the proper way to do it?
This is what I'm added so far to try to load and place the images so far, and I can tell it's quite incorrect, based on the number of errors I keep seeing.
Code:
Window_BattleStatus.prototype.Bust = function(filename, hue) {
return this.loadBitmap('img/system/battle/busts/', filename, hue, true);
};
Code:
Window_BattleStatus.prototype.loadImages = function() {
$gameParty.battleMembers().forEach(function(actor) {
ImageManager.loadBust(actor.name());
}, this);
Code:
Window_BattleStatus.prototype.drawItemImage = function(index) {
var actor = $gameParty.battleMembers()[index];
var rect = this.itemRect(index);
var bust = $gameParty.battleMembers()[index].name;
this.changePaintOpacity(actor.isBattleMember());
Bitmap.load('img/system/battle/busts/')
this.drawBust(bust, rect.x + 1, rect.y + 1);
this.changePaintOpacity(true);
};
Thanks in advance!
