Thin black line over character sprite

Status
Not open for further replies.

Teddy97

Veteran
Veteran
Joined
Apr 3, 2018
Messages
49
Reaction score
22
First Language
German
Primarily Uses
RMMV
I’m getting a thin black line over the character sprite.


The weird thing is that it only appears at the fifth tile from the bottom. (whole length - every map)
I’m using a Map Zoom plugin. (MBS MapZoom)

Any ideas how to fix that?

Edit:
- The character sheet is not the problem.
- If I’m using an other zoom ratio, then the black line appears on an other spot.
- Made a new project. Same problem still occurs.
 

Attachments

Last edited:

Miss Nile

Veteran
Veteran
Joined
Jul 6, 2012
Messages
456
Reaction score
402
First Language
Egyptian Arabic
Primarily Uses
RMMV
My guess is that there is something wrong with the character sheet itself. Look at the part where the character is in that position. Most likely, you'll find that the tile above it has this line descending into the bottom tile, if you get what I mean. ^^
 

Teddy97

Veteran
Veteran
Joined
Apr 3, 2018
Messages
49
Reaction score
22
First Language
German
Primarily Uses
RMMV
My guess is that there is something wrong with the character sheet itself. Look at the part where the character is in that position. Most likely, you'll find that the tile above it has this line descending into the bottom tile, if you get what I mean. ^^
I have tried using the default character sprites too and the same problem still occurs. Moreover it only appears at the fifth tile from the bottom. If the character sheet is wrong this would also appear on other lines ?
 

Miss Nile

Veteran
Veteran
Joined
Jul 6, 2012
Messages
456
Reaction score
402
First Language
Egyptian Arabic
Primarily Uses
RMMV
Hmm not necessarily but if it occurs with other character sprites, then it isn't the character sheet. This only happens in zoom mode, or also when in normal mode?
 

Teddy97

Veteran
Veteran
Joined
Apr 3, 2018
Messages
49
Reaction score
22
First Language
German
Primarily Uses
RMMV
Hmm not necessarily but if it occurs with other character sprites, then it isn't the character sheet. This only happens in zoom mode, or also when in normal mode?
Yes, only in zoom mode.
 

chaucer

Veteran
Veteran
Joined
Aug 6, 2014
Messages
265
Reaction score
408
First Language
English
Primarily Uses
RMMV
This is an issue with pixi js in the way the scale feature works, you can bypass the problem by adding a padding of 1 pixel around each cell of the sprite sheet, otherwise there's no way to bypass this without modifying pixi js afaik( although I have not looked into this issue too deeply ).

What's happening, is when it "zooms in" or scales the images, the image size is being read at somewhat innacurate values( float points ), so sometimes, you will see the top, or bottom of the animation below, or above the sprite.

so the optimal solution, would be to add a sort of padding of 1 pixel for each cell in your animation, I believe default animations should have plenty of padding on the width of each cell, however you want to add an extra padding to the top or bottom( or both ), of each cell. I'll give an example to make things a bit clearer.

In the red box in the image below, you can see there is no gap between the feet and the hair, this is where this issue would become present.
upload_2019-6-28_4-17-50.png


In the image below, I've increased each cell's size from 48x48, to 48x49, you can see in the red box, there is now a blank space above the characters head, this is what you'll need to do to prevent this issue from happening.
upload_2019-6-28_4-19-14.png
 

Bex

Veteran
Veteran
Joined
Aug 2, 2013
Messages
1,343
Reaction score
330
First Language
German
Primarily Uses
RMMV
If i remember correctly, than @Archeia mentioned this somewhere, this could happen on different occasions on the Map, if you choosed a special
Screen Resolution. I cant remember the exact numbers.

But did you change your Game Resolution?
And which is it?
Maybe a wrong resolution alone caused this or maybe the wrong resolution in comparison with the Zoom Plugin?
 

Teddy97

Veteran
Veteran
Joined
Apr 3, 2018
Messages
49
Reaction score
22
First Language
German
Primarily Uses
RMMV
@chaucer
Thank you, mate! Adding a blank space for each cell worked.
 

Kes

Global Moderators
Global Mod
Joined
Aug 3, 2012
Messages
21,637
Reaction score
10,934
First Language
English
Primarily Uses
RMVXA

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Me: "Finally finished most of my game backlog. Probably time to do some gamedev" | Steam: *offer sales*
If I recorded while I created (what I think is) a small plugin, would you be interested enough in the process to watch it?
I keep trying to explain to clients that the huddle masses behind the old K-Mart are a Fallout Reenactment group. Somehow I don't think they believe me. :LZSskeptic:
Hey people! What do you think about a core plugin? This will save some lines of code that I repeatedly use in all my plugins...
Wondering if I should make my enemies scale in my non-linear rpg. I'm leaning towards yes, but I don't want to use Yanfly's plugin...

Forum statistics

Threads
94,594
Messages
922,168
Members
124,464
Latest member
foghiszdenisz
Top