- Joined
- Jan 14, 2020
- Messages
- 59
- Reaction score
- 90
- First Language
- english
- Primarily Uses
- RMMV
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?
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.
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.