RPG Maker Forums

From what I understand, $gameScreen._pictures is the array that holds all of the Game_Picture objects that are shown on the map, and it has a maximum size of 100 array items for this.

It seems to reserve items 200 and up for battle images (?) but my project uses an ABS system so I haven't delved too deep into looking into this.

I have a set of pictures that I am constantly using on map that I am currently storing in the 81-100 block of the $gameScreen._pictures array. I might have to eventually take up twenty more array slots so to avoid any conflicts with other processes in the project I am wondering if it possible to create my own array that I push my own Game_Picture objects to instead?

Is it as simple as aliasing Game_Screen.prototype.updatePictures to include the array or is there more to it?

JavaScript:
var HeadsUp_Game_Screen_updatePictures = Game_Screen.prototype.updatePictures;
Game_Screen.prototype.updatePictures = function() {
    
    HeadsUp_Game_Screen_updatePictures.call(this);
    
    PE.HeadsUp._pictures.forEach(function(picture) {
        if (picture) {
            picture.update();
        }
    });
};
I would also be using my own functions to manage the private array, because I understand that the $gameScreen picture ones correspond to original $gameScreen._pictures array.

Does anybody have any experience doing anything similar?

Thanks in advance for your insight and help.

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,050
Messages
1,018,548
Members
137,835
Latest member
yetisteven
Top