Main Menu
  • Welcome to The RPG Maker Resource Kit.

[RESOLVED]Enhanced Bitmap by ERZENGEL - Draw Icons

Started by Heartofshadow, February 15, 2010, 05:21:21 PM

0 Members and 1 Guest are viewing this topic.

Heartofshadow

After messing around with this script for quite a while, I was unable to fix my dilemma.. so here it is.

This script (found below) allows Bitmap#draw_text to convert control characters. One of the features is the drawing of an item, weapon, armor, or skill's name and icon. Now, my problem is this:

When using the code to draw an item's name and icon, Ex:\DI[n] or even just an icon from the sheet (\IC[n]), the name gets displayed properly, but the icon is shown at the beginning of the text sequence and not in the spot where the code was located.

Any ideas?

EDIT: Script removed as problem was resolved and I'm unsure about ERZENGEL's permissions.


-Heart of Shadow-

"How can I be expected to save the world, when I can't even save myself?" --Sysolos(Return of a Shadow Lord)

modern algebra

Well, I don't know anything about that script. You could try my Global Text Codes script if you wanted.

If you want to use the one you posted, it might be something simple. Maybe where he drew the icon he used 0, 0 instead of whatever he uses to track text position?

Heartofshadow

Wow...

So, I went back through the section that was pulling the code to draw the icon.. and it was using "x" instead of the same one for the text, which in this case was "tx".

In other words, I replaced the "x" with "tx" and all works as it should now. Haha.. thanks for the suggestions, Modern! I was almost going to use your Text Codes script, too.  :P

The main reason I really wanted to use the Enhanced Bitmap script is because the codes for aligning text are very handy. If yours had that too, Modern, I would've switched in a heartbeat.


-Heart of Shadow-

"How can I be expected to save the world, when I can't even save myself?" --Sysolos(Return of a Shadow Lord)