Show Text on Screen | Skyrim-ish quest popup

2025 update: This was my journey of learning how the RPG Maker framework worked with the help of ChatGPT. I am forever grateful for this journey, even though I no longer use ChatGPT, because it has opened up a wealth of knowledge for me. I'm not ashamed of this journey, and I hope you won't harass me for it. Thank you.

Show Text on Screen
v.1.0.2 by Sang Hendrix: Ideas, debug. ChatGPT: Code, debug


ezgif.com-optimize (3).gif


Changelog
[ver 1.0.2]
- Changed default value of Font File Name from Game Font to rmmz-mainfont.
- You now use the filename of your font file instead of the font face name. Previously, it only worked if the font was installed on Windows. Now, if you have a file called ABC.ttf or ABC.otf inside the fonts folder, simply type ABC to the Font File Name box (from the plugin command).
- Edited a typo mistake.

Description
This plugin helps you to show text on the screen by using the plugin command. Can be used for questing, notification, etc.

Features
  1. Change the position of the text
  2. Change font, size, and color
  3. Can toggle outline on or off and change its color
  4. Play an SFX when text is shown and its pitch and volume can be adjusted
  5. The duration of the text
  6. The duration of the fade in fade out effects
Do you have MV version?
Do you have MV version?
If this doesnt work in MV you can try Moghunter's plugin
If this doesnt work in MV you can try Moghunter's plugin

Yeah, it didn't work in MV. I will try this, thank you!
Yeah, it didn't work in MV. I will try this, thank you!
Ok, the link in the Twitter is broken but you can get all the Moghunter plugins at the new site
This looks to be a really nice plugin. I've been using Yoji Ojima's textpicture.js which ships with MZ, but the text can't be colored and the only way to enlarge it is to scale the picture which, of course, blurs the text. So I find this plugin really attractive for my purposes. I do, however, have a couple of questions.

(1) No matter what I set y position to, the text will always appear middle of screen. I'd like to place it closer to the top of the screen. Right now I have x position set at center and y position set at 10. Yet, the text continues to show center horizontal and center vertical. I have this in a blank project with no other plugins active.

(2) Is it possible to add an 'erase text' option so the text persists until that 'erase text' option is executed rather than automatically having the text erased after a set time?

Thanks for making this available. Even if I can't use it for what I have in mind, I can still see me using it for dozens of other situations and I'm sure many others will be using it as well.
I do, however, have a couple of questions.
...
Just to set your expectations, the OP may not be able to help you much because he's not a programmer and relies on ChatGPT to create code. It's been pointed out his plugins have junk code in them and he doesnt fully understand it.

That said, the plugins seem to "work" on the surface but be aware there may be unforeseen problems.
Well, that's a gamechanger. 😔 Thanks for the heads up. I'll continue using Yoji Ojima's plugin then.
Well, that's a gamechanger. 😔 Thanks for the heads up. I'll continue using Yoji Ojima's plugin then.
The plugin was made as it is, I didn't intend to update more features to this specific plugin. I made this plugin for my project and I simply share it. The plugin will have more features if my project needs those features, so there won't be an erase text feature, but I'll fix the first issue and will be making an update to this post.
The plugin has been updated to version 1.0.1.
Changelog:
- Fixed issue whatever you input to x and y don't adjust the text position
- Removed an unnecessary code.

Screenshot 2024-01-20 124330.png


Follow the instruction below to align the text to the left side:

Screenshot 2024-01-20 141814.png

Screenshot 2024-01-20 141834.png


PS: Funny enough I created this plugin because the text as picture plugin was over-complicated. xD
Ok, the link in the Twitter is broken but you can get all the Moghunter plugins at the new site
Oh, I already had all Moghunter plugins. The plugin worked like a charm! Thank you!
If you find any issues with the plugin, including when it's running on mobile devices or PC, please let me know.
👋
Spoiler: v1.0.1
  1. ShowTextSprite does not release its modified textures from memory.
    • Suggestion: patch the sprite's destroy method to call this.bitmap.destroy().

  2. Text disappears on scene changes, e.g. change map or open pause menu.
    • Suggestion: create a game object to represent the text, which the sprite references.

  3. Text gets removed from the current scene (no effect if sprite is absent).
    • Suggestion: implement the timers in the scene's update method instead of using setTimeout. This will also ensure your plugin's text updates at exactly the same rate as the rest of the game, rather than potentially desynchronising from the core game loop (fluid timestep).

  4. The fade in/out timers can outlast the applicable sprite instance, e.g. point 2.
    • The suggested fix for point 3 should automatically cover this.

  5. I notice the plugin command is an async function. Thoughts:
    • If it is slow, async permits a change of scene before the text shows.
    • If it is fast, async is unnecessary.

  6. The default arg value GameFont is for RMMV.
    • Suggestion: consider rmmz-mainfont instead.

  7. I don't know where PluginManager.convText is defined, but hopefully you do!
can this plugin show balloon or icon when the player is nearby the event ?
can this plugin show balloon or icon when the player is nearby the event ?
That's not similar to what the description of the plugin says:

This plugin helps you to show text on the screen by using the plugin command.

Try looking up event proximity plugins.
👋
Spoiler: v1.0.1
  1. ShowTextSprite does not release its modified textures from memory.
    • Suggestion: patch the sprite's destroy method to call this.bitmap.destroy().

  2. Text disappears on scene changes, e.g. change map or open pause menu.
    • Suggestion: create a game object to represent the text, which the sprite references.

  3. Text gets removed from the currentscene (no effect if sprite is absent).
    • Suggestion: implement the timers in the scene's update method instead of using setTimeout. This will also ensure your plugin's text updates at exactly the same rate as the rest of the game, rather than potentially desynchronising from the core game loop (fluid timestep).

  4. The fade in/out timers can outlast the applicable sprite instance, e.g. point 2.
    • The suggested fix for point 3 should automatically cover this.

  5. I notice the plugin command is an async function. Thoughts:
    • If it is slow, async permits a change of scene before the text shows.
    • If it is fast, async is unnecessary.

  6. The default arg value GameFont is for RMMV.
    • Suggestion: consider rmmz-mainfont instead.

  7. I don't know where PluginManager.convText is defined, but hopefully you do!

Hi, thank you for the detailed feedback. I'll note all of that.

For number 2. The text disappearing from the scene is intentional. Again, this plugin was made for my project Into Samomor so I had my reason. I likely won't change this unless my project needs it.

For number 7. PluginManager.convText is a function from Neko Multilanguage plugin, so if the player uses that plugin to localize the game, this show text on-screen plugin will adapt to that.

@lavexis I did create a plugin like that and I also shared it on the forum, but the version on the forum is outdated and the plugin does everything you mentioned except for showing an icon. There's a plugin from Galv that shows an icon, if you combine Galv plugin with mine then you'll have your idea becomes true.
This plugin looks like it should support other fonts. I've tried using named fonts in the font folder but the text ends up tiny and doesn't look like the font is applied. I haven't tried with the full font file name, only the font name. As mentioned by caethyril GameFont doesn't use the default font set in the database. Only just getting into plugin dev so I'm not sure how fonts are handled. I'm away from my PC right now, but I'll try that next. Since this was partially AI generated I'm not sure if it's optimized yet, but it definitely works.
This plugin looks like it should support other fonts. I've tried using named fonts in the font folder but the text ends up tiny and doesn't look like the font is applied. I haven't tried with the full font file name, only the font name. As mentioned by caethyril GameFont doesn't use the default font set in the database. Only just getting into plugin dev so I'm not sure how fonts are handled. I'm away from my PC right now, but I'll try that next. Since this was partially AI generated I'm not sure if it's optimized yet, but it definitely works.
Hi! I've updated the plugin to version 1.0.2. Pls see below for the changes.

Update to Version 1.0.2
- Changed default value of Font File Name from Game Font to rmmz-mainfont.
- You now use the filename of your font file instead of the font face name. Previously, it only worked if the font was installed on Windows. Now, if you have a file called ABC.ttf or ABC.otf inside the fonts folder, simply type ABC to the Font File Name box (from the plugin command).
- Edited a typo mistake.
I tried a few things, but I still couldn't get custom font's to work on 1.0.2. I know you are getting it to scan through the fonts folder. I wanted a way to add the fonts specifically, so I've made some changes so I can add the fonts into the plugin parameters. With my parameter based approach the custom fonts work fine, although I'm using entirely new code to add the fonts now. FYI I'm a programmer and although the plugin works, what others have said is definately true, the code could be quite a lot cleaner and more efficient. Not trying to be negative, the plugin is a great starting point for learning this stuff. My guess is that the AI generated some of that problem. I will likely use some of the ideas here to build my own plugin. No idea if I'd ever release it, as it's mostly for my own purposes, but I'd credit you if I did. BTW I would highly recommend adding a line in to destroy the bitmap after the fade out has occured. Eventually the garbage collector will release the memory, but it would be much better to free it sooner than that, so memory usage doesn't build up.
Quick update.

I ended up starting again from scratch and building an entirely new plugin for text and image display. This is now live and available here:

Kognitro - Text Mage 1.0.0 - Anchor text and images with fade effects.

I've still credited you Sang for the basic idea.

My plugin is quite different from yours, in that's focused more around anchoring text and images to specific places on the screen. It's mostly about supporting dynamic screen resolutions. It has the basic fade in effects. Doesn't have the sound effects though.

Original thread: https://forums.rpgmakerweb.com/threads/show-text-on-screen-skyrim-ish-quest-popup.156944/