Howdy,
This is an odd thing to start off with, but I'm trying to make a game in the engine that doesn't immediately look like it's made in the engine. One of the first things I'd like to tackle on that front is the typewriter text scroll, since I feel like that's pretty standard and characteristic of RPG Maker. Now, I'm aware of the \> text code and various plugins that sort of do instant text, but all of those plugins are on the simpler side and include player-facing options. My game is extremely text-heavy (the entire focus of the game is walking around talking to people) so the thought of slapping in a text code for every line is super daunting. And on the plugin front, I'd rather not give players the ability to mess with how i want my text displayed!
Specifically, what I'm looking for is a plugin which displays all message text in one go with a snappy slide + fade in, sort of like how some games fade in busts, only instead of a bust it's a block of body text. Being able to fiddle with the speed of both the slide and the fade would be ideal, but not necessary so long as it's quick enough by default.
Cheers, and thanks!
Hmmm, make the showfast always be true? Then when you start the message or go to new page make the message window _windowContentsSprite.opacity be 0 and then add a method to the message window update that increases that opacity by some number if it's less than 255.
But do you really want your text to slide in? Or you mean the whole window to slide in when you open/close it? Then I guess you can start the window x at minus game screen width and add to the window message open/close to slide it. And also change how fast the "open/close" slide happens. And if you also meant with the opacity the whole window opacity, you can make that change there too.
oh, i should say--i'm using YEP message core, since i need character names. i imagine that might cause some compatibility differences from just the base message system?
I was thinking about just something like below (copy paste to notepad, save as .js file and add as plugin). But it has the problem that the opacity affects the face too. If you don't want that (and if you want the text slide) you'd have to separate the face from the text, at least as far as I understand. Or then make it draw the elements every frame to new positions (with the changing opacity for the text).
Window_Message.prototype.updateShowFast = function() {
this._showFast = true;
};
const _myEdit1_WindowMessage_update = Window_Message.prototype.update;
Window_Message.prototype.update = function() {
_myEdit1_WindowMessage_update.call(this);
if (this._windowContentsSprite && this._windowContentsSprite.opacity < 255) {
this._windowContentsSprite.opacity += 5;
}
};
const _myEdit1_WindowMessage_newPage = Window_Message.prototype.newPage;
Window_Message.prototype.newPage = function(textState) {
_myEdit1_WindowMessage_newPage.call(this, textState);
if (this._windowContentsSprite) {
this._windowContentsSprite.opacity = 0;
}
};
oh snap! i actually really dig how it looks with the face fading in alongside. it would still be super nice to get the slide working, but just the fade alone does an absolute ton to give the text a different feel.
thanks a heap!
i think, then, what i'll do is just call the face as an image when necessary instead of tying it to the message box in the event. the window isn't a problem at all, if i understand correctly, since all of the empty box elements are a single image that i'm just loading on top of all the parallax layers and they stay present as a frame even when not interacting with an event.
Yeah, if you want it to be like in you example, you can modify the plugin a bit like below. But if you have large "offset" and you message box doesn't reach end of screen the text can appear outside the message box and you'd probably need some kind of masks then, not sure. But yeah I think this should work for something like in your video.
Window_Message.prototype.updateShowFast = function() {
this._showFast = true;
};
const _myEdit1_WindowMessage_update = Window_Message.prototype.update;
Window_Message.prototype.update = function() {
_myEdit1_WindowMessage_update.call(this);
if (this._windowContentsSprite) {
if (this._windowContentsSprite.opacity < 255) {
this._windowContentsSprite.opacity += 5;
}
if (this._windowContentsSprite.x > 0) {
this._windowContentsSprite.x -= 5;
if (this._windowContentsSprite.x < 0)
this._windowContentsSprite.x = 0;
}
}
};
const _myEdit1_WindowMessage_newPage = Window_Message.prototype.newPage;
Window_Message.prototype.newPage = function(textState) {
_myEdit1_WindowMessage_newPage.call(this, textState);
if (this._windowContentsSprite) {
this._windowContentsSprite.opacity = 0;
this._windowContentsSprite.x += 100;
}
};