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?
MV SOLVED Space between damage popup Digits
Javascript/Plugin SupportA Crystal will Rebouce!!
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.
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?
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
For example:
10
21
12
112
Yes, see this image below
The 1 is the most conflict number, other are fine.. but i want their a bit more closer
The 1 is the most conflict number, other are fine.. but i want their a bit more closer
I think I expressed myself poorly.
I meant that they don't contain the numeral 1
I meant that they don't contain the numeral 1
Mmm I edit the previous message, a 78 appear there 🙂
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.
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
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.
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.
Oh! Yes I send you the image in a while for PM. 🙂
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.
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.
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.
Oh, ok, well thank you for your time, really 🙂 , but I still searching for a method, all need be perfect for my game
Try this, edit the MOG_DmgPopupEffects.js plugin with some text editor.
Replace line 345:
That is why:
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.
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.
WOW THAT'S IS AWESOME!!! the margin was fixed, now look much better. 🙂 I can work with this. Thanks
Any time!
I am very happy to know that I was able to help with your project.
I am very happy to know that I was able to help with your project.
Original thread: https://forums.rpgmakerweb.com/threads/solved-space-between-damage-popup-digits.137439/