STARFALL

Core of the Stars
Veteran
Joined
Jul 6, 2020
Messages
259
Reaction score
63
First Language
spanish
Primarily Uses
RMMV
I want reduce the space between digits of popup. As you see in the below image the space between digits are to long. i need a more smaller separation. Any advise?
 

Attachments

  • crystalcave.png
    crystalcave.png
    409.6 KB · Views: 3
Last edited:

STARFALL

Core of the Stars
Veteran
Joined
Jul 6, 2020
Messages
259
Reaction score
63
First Language
spanish
Primarily Uses
RMMV
A Crystal will Rebouce!!
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
2,276
Reaction score
1,232
First Language
English
Primarily Uses
RMMV
You'll need to say (and link to) what plugin you're using to modify your popups to get help with your question - mine using the default engine don't look like that.
 

STARFALL

Core of the Stars
Veteran
Joined
Jul 6, 2020
Messages
259
Reaction score
63
First Language
spanish
Primarily Uses
RMMV
I use a Mog plugin, Mog damage popup, but the space between digits is because an effect of glow in my number, seems similar with the default popup engine. So can help me to reduce the space using Js?
 

Dev_With_Coffee

Veteran
Veteran
Joined
Jul 20, 2020
Messages
900
Reaction score
445
First Language
PT-BR
Primarily Uses
RM2k3
Could you please confirm if this problem only happens when you have digits with number 1 or in all cases?

For example:
10
21
12
112
 

STARFALL

Core of the Stars
Veteran
Joined
Jul 6, 2020
Messages
259
Reaction score
63
First Language
spanish
Primarily Uses
RMMV
Yes, see this image below
Screenshot (201).png
The 1 is the most conflict number, other are fine.. but i want their a bit more closer
Screenshot (196).png
 
Last edited:

Dev_With_Coffee

Veteran
Veteran
Joined
Jul 20, 2020
Messages
900
Reaction score
445
First Language
PT-BR
Primarily Uses
RM2k3
I think I expressed myself poorly.
I meant that they don't contain the numeral 1
 

Dev_With_Coffee

Veteran
Veteran
Joined
Jul 20, 2020
Messages
900
Reaction score
445
First Language
PT-BR
Primarily Uses
RM2k3
The spacing may not be in the plugin, but in the images, because if you replace them with another smaller style it will adapt itself.
 
Last edited:

STARFALL

Core of the Stars
Veteran
Joined
Jul 6, 2020
Messages
259
Reaction score
63
First Language
spanish
Primarily Uses
RMMV
Yeah I know, but I need make this because the image number are perfect for my game, I want reduce the space whit js.... I needed it
 

Dev_With_Coffee

Veteran
Veteran
Joined
Jul 20, 2020
Messages
900
Reaction score
445
First Language
PT-BR
Primarily Uses
RM2k3
Can you send me the images just for me to analyze?
I don't have this script, but I'll download it to see, probably one image will overlay the other causing a wrong visual effect.
 

Dev_With_Coffee

Veteran
Veteran
Joined
Jul 20, 2020
Messages
900
Reaction score
445
First Language
PT-BR
Primarily Uses
RM2k3
I followed the Plugin's instruction to make sure everything went fine:
It is necessary for the image to have the height divided by 8 for the images to be aligned.

É necessário que a imagem tenha a altura dividida por 8 para que as imagens fiquem alinhadas. (O padrão é 5)

By my tests the offset margin is exactly 1 pixel.
I couldn't find the part of the code where I could actually modify it so that one number would be on top of the other.

The best way to really solve this is to remove the margins from each digit of the image.
 

STARFALL

Core of the Stars
Veteran
Joined
Jul 6, 2020
Messages
259
Reaction score
63
First Language
spanish
Primarily Uses
RMMV
Oh, ok, well thank you for your time, really :) , but I still searching for a method, all need be perfect for my game
 

Dev_With_Coffee

Veteran
Veteran
Joined
Jul 20, 2020
Messages
900
Reaction score
445
First Language
PT-BR
Primarily Uses
RM2k3
Try this, edit the MOG_DmgPopupEffects.js plugin with some text editor.
Replace line 345:
Code:
sprite.x = (i - (string.length - 1) / 2) * w;

That is why:
Code:
sprite.x = ((i - (string.length - 1) / 2) * w)-(8*i);

If you want to separate the digits a little, change the number 8 to 6.

I wasn't able to reduce the margin of the images because of the light effect, but I believe it will be very close to what you need.
And as instructed, you can adjust the displacement yourself.

Tip:
The image you sent me in particular has a 1 or 2 pixel shift to the left, causing part of the outline of some numbers to appear in others.
 

STARFALL

Core of the Stars
Veteran
Joined
Jul 6, 2020
Messages
259
Reaction score
63
First Language
spanish
Primarily Uses
RMMV
WOW THAT'S IS AWESOME!!! the margin was fixed, now look much better. :) I can work with this. Thanks
 

Dev_With_Coffee

Veteran
Veteran
Joined
Jul 20, 2020
Messages
900
Reaction score
445
First Language
PT-BR
Primarily Uses
RM2k3
Any time!
I am very happy to know that I was able to help with your project.
 

Latest Threads

Latest Posts

Latest Profile Posts

My entire world, full of monsters and treasures, will likely be done by the end of the year. After that it's all NPCs and side quests... then done. I'm never making an open world game again xD
The more I read Calvin and Hobbes as an adult, the more I deeply respect Bill Watterson. Plenty of stuff flew over my head, but now that I'm old enough to appreciate the viewpoints he shared with the fun and imagination? I am grateful that C&H was basically my early childhood.
After years of relying on others and the community to help with making my games, I've decided to delve into the world of scripting. Thought I'd share a few simple scripts that I made that I'm very proud of and excited about!

Redesigning characters after such a long time feels great. Makes me excited to work on an old game again.
Phone menu to replace main menu WIP:

Forum statistics

Threads
116,097
Messages
1,095,760
Members
151,487
Latest member
ShiJun
Top