Hayolee

Villager
Member
Joined
Jan 18, 2015
Messages
28
Reaction score
0
First Language
English
Primarily Uses
Hi!
I'm a little unfamiliar with the RPG Maker MV API, but I have worked in Javascript before briefly (not a master) just to give you some insight.
I'm currently trying to create a few plugins that need a screen overlay/bitmappy stuff. I'll list them both before I go into more detail:

1.) I want a very, very simple lighting plugin (I know there are some out there, but I'd like to make my own for certain... reasons)
2.) I want to have a hotbar (or, just one box) on the bottom of the screen

I'm not entirely concerned about these being glitchy or bug-free. I would prefer if when text appeared it did so over the hotbar, but beggars can't be choosers.

All in all, I would like to see some example code perhaps on how to create an overlay. If someone could point me to some documentation that would also be very cool.

For 1.) I plan on creating a circle around the player (so have the circumference and radius). I want to be able to have everything that's not in the circle around the player covered with black and almost barely visible, so I want it to be relatively opaque. I'm planning on doing this to kind of simulate a field of vision in the darkness. I also plan on updating it on player movement (so that the circle follows the player). I have some very rudimentary drawings for it here, one of them is demonstrating an idea I had with four circles and then coloring in the pixels around the circle black, but I've realized that if I can color pixels I just want to make a certain amount of them transparent. Not sure if this will work, but I'm willing to try both ways:
I'm having difficulty with bitmaps. Do I create a sprite that's black and somewhat opaque? Then do I create a circular bitmap on top of that and make it completely transparent? Do I need to create a sprite? Can someone please explain bitmaps to me?

For the 2.) I believed I would just create a basic box overlay at the bottom of the screen. Then, use like an if statement popup asking if the user wanted to put whatever item they just selected in their hotbar. If yes, then put an overlay/bitmap of the icon of the item on the box. I know there are a lot of things that could be glitchy in this situation, but I essentially just need a proof of concept before I focus on any of those things. I don't have any image examples of what I would like for this because it's just a little square box in the bottom center of the screen.

If anyone could point me to some examples, documentation, etc. it would be greatly appreciated. Also, I'm not sure if I posted this in the correct thread, so please let me know if I didn't, thanks.
 
Last edited:

Hayolee

Villager
Member
Joined
Jan 18, 2015
Messages
28
Reaction score
0
First Language
English
Primarily Uses
So, like, can I get a rundown on bitmaps/screen overlay stuff? The documentation I found is not incredibly helpful.
 
Last edited:

Latest Threads

Latest Profile Posts

It seems that I have to change the order with which I make the fantasy games on my bucket list, because the intended title is used as a story element in the first two games in the line, and somebody else might take the title for their own game because the term uses real words. I can't risk going over the apparent three year limit for registering trademark ahead of time.
I am interested in collaborations so if you like my art, hit up my messages! :wub
unknown.png

Making good progress with the second chapter. :)

Still work in progress.

(Real life, it is chronically the fourth chapter that I am making.)
constructionworkconcept.pngezgif-2-0acb620ecf8d.gifezgif-2-afeaf16ebb8d.gif "The Great Wall is great. But, most people can only be the slaves who built it, leaving their bones underneath that wall. They spent their whole life to build that wall and the empire, an empire that enslaves them." :kaoswt2: I'm just going to turn it into a modern-day sad tale.

Forum statistics

Threads
110,672
Messages
1,055,083
Members
143,795
Latest member
IrishEngineer13
Top