How to load and place a picture?

Eilwyn

Veteran
Veteran
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.

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);
};
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!
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
2,604
Reaction score
1,961
First Language
English
Primarily Uses
RMMV
I'm honestly not really sure what's going on in your code, but I can see that you're calling several function that aren't part of the core script and that you haven't detailed here, so either you're omitting code you've written, or you're trying to call functions that don't exist.

Did you define a function called loadBust in ImageManager? Have you created a function for Window_BattleStatus called drawBust? I see one called "Bust" but drawBust and Bust would be two entirely different things.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Day 9 of giveaways! 8 prizes today :D
He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.

Forum statistics

Threads
106,040
Messages
1,018,476
Members
137,824
Latest member
dobratemporal
Top