any tip to reserve img

pasunna

Veteran
Veteran
Joined
Feb 3, 2019
Messages
311
Reaction score
71
First Language
thai
Primarily Uses
RMMV
I see there are
ImageManager.reserveFace(actor.faceName());
for reserve face img
but if I want to reserve something else like
custom img
in scene_menu function
any one had some tip for it
thank you
 

caethyril

^_^
Veteran
Joined
Feb 21, 2018
Messages
1,510
Reaction score
992
First Language
EN
Primarily Uses
RMMV
I think this'll do it: ImageManager.reserveBitmap(folder, filename, hue, smooth, reservationId);

You can find the ImageManager and all its methods in rpg_managers.js; in v1.6.2 reserveBitmap is defined on lines 976~985. :)
 

pasunna

Veteran
Veteran
Joined
Feb 3, 2019
Messages
311
Reaction score
71
First Language
thai
Primarily Uses
RMMV
I think this'll do it: ImageManager.reserveBitmap(folder, filename, hue, smooth, reservationId);

You can find the ImageManager and all its methods in rpg_managers.js; in v1.6.2 reserveBitmap is defined on lines 976~985. :)
yes... I already find some that specific the
ImageManager.reserveSystem = function(filename, hue, reservationId)
and my image is in the system folder
so I try
ImageManager.reserveSystem('WindowLevel', 0, 2);
but the img not reserve as it should
image_20200124_192557.png
the window skin I test back to normal when I refresh it one time
so I assume that it not load in time at initialization

so... is there other way like wait in function?
 

pasunna

Veteran
Veteran
Joined
Feb 3, 2019
Messages
311
Reaction score
71
First Language
thai
Primarily Uses
RMMV
solve
in case someone curios
ซีน_อัพเลเวล.prototype.start = function() {
Scene_Base.prototype.start.call(this);
//this._หน้าต่างชื่อ.refresh();
//this._หน้าต่างข้อมูล.refresh();
this._หน้าต่างสเตตัส.refresh();
this._หน้าต่างเลเวล.refresh();
this._หน้าต่างตัวเลือก.refresh();
};
there are start fucntion that I miss
it can refresh the scene before showing
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Considering a side project of making a Choose Your Own Adventure in MV but letting people play it as YouTube videos with the choices at the end leading to other videos. Thoughts?
I've made a rudimentary prototype map for the first game with the MV RTP overworld tiling. I'm probably going to photoshop the crap out of it for parallax, but the prototype has given me new ideas about how I want to place dungeons in the game.
I got tired of not having an avatar image. Couldn't think of anything cool. So I'm just using my game's antagonist instead... How original. At least both of our names start with C?
Expectation: Design/dev a game for the game jam | Reality: "These codes suck, why did I do it this way? lemme fix this. Also what if I add feature xyz because... well, I can."
Did my first script call in an event! :kaopride: It's completely useless and just because I thought it'd be cute if looking at clocks in-game made the character say the real-world time, but it's fully functional scripting and I did it all by myself!

Forum statistics

Threads
95,635
Messages
930,604
Members
125,950
Latest member
Tocilux
Top