Is there any simple way to draw text on position x,y?
How to draw text on screen?
Learning Ruby and RGSSxYou need to make a sprite, give it a bitmap, and then use the bitmap's draw_text method. This is more difficult than just slapping it in a script box, because after a little bit Ruby will consider your sprite and bitmap to be garbage and have it deleted. You'd have to make a script in the script editor that holds it in order for Rubt to not deem it as removable junk.
It really isnt that difficult, but it may be a little tricky getting it to work exactly as you'd like it to.
It really isnt that difficult, but it may be a little tricky getting it to work exactly as you'd like it to.
Sprite is an option.
Transparent window is also an option.
There are many ways but yes you basically need something that stores a bitmap object.
Transparent window is also an option.
There are many ways but yes you basically need something that stores a bitmap object.
I'm trying to do something like show a text on top of my door event saying "Z to Open" stuff like that. How would I go about ?
I see this is in the scripting section, but I noticed this thread from the "recent topics" on the front page of the forum. I apologize in advance if you absolutely want to do this with a script.
If you only want to draw text on your maps, and hopefully infrequently, you could simply go into photoshop, type out your message on a transparent layer, then save that as a tiny .png file. Then, simply use the "show picture" command centered with coordinates slightly above your door, in the example you gave.
I've created entire functional menus using the show picture command and some clever loops and conditionals, so something like an on-screen tutorial should be super easy to do with just events.
If you want the picture to disappear after the player opens the door, put the "show picture" command inside a conditional branch that checks if a switch is on, and then turn that switch on when you "open" the door.
Again, I don't know anything about scripting and I realize this is the scripting section, but I thought this would be easy enough with the built-in event commands.
If you only want to draw text on your maps, and hopefully infrequently, you could simply go into photoshop, type out your message on a transparent layer, then save that as a tiny .png file. Then, simply use the "show picture" command centered with coordinates slightly above your door, in the example you gave.
I've created entire functional menus using the show picture command and some clever loops and conditionals, so something like an on-screen tutorial should be super easy to do with just events.
If you want the picture to disappear after the player opens the door, put the "show picture" command inside a conditional branch that checks if a switch is on, and then turn that switch on when you "open" the door.
Again, I don't know anything about scripting and I realize this is the scripting section, but I thought this would be easy enough with the built-in event commands.
That's cool and all but I don't wanna have to make images all over the place when the engine already supports text drawing. It can be ok at first but I think that it might become too troublesome later on to keep it organized.
I like some of the scripts there but the one you sent me show the text all the time. I wanna be able to to control when it shows and where it shows. I'm currently using this one here: http://theolized.blogspot.com.br/2013/07/theo-interact-hover-notification.html but only shows the text if the event has a on click trigger. I wanted a hassle free way without having to need too many events just to show some interaction text. Something like:
comment <textVisible: true>comment <textValue: Z to open>Isn't there a way I could store this at game_event so that each game event had a text thingie that I could set it's values when needed?
You could use mog's script and add a conditional to it (by active event page or self switch perhaps). But yeah you need to know how to script that and that is not entirely 'newbie-friendly' to do so. My minimap also only draws the icon on the map if the comment is on the ACTIVE event page. The code is all there you just need to combine it. But again, this is not an easy task for a beginner and I don't know exactly what your skill level is.
Original thread: https://forums.rpgmakerweb.com/threads/how-to-draw-text-on-screen.18339/