Thin black line over character sprite

Discussion in 'RPG Maker MV' started by Teddy97, Jun 28, 2019.

Thread Status:
Not open for further replies.
  1. Teddy97

    Teddy97 Veteran Veteran

    Messages:
    49
    Likes Received:
    22
    Location:
    Austria
    First Language:
    German
    Primarily Uses:
    RMMV
    I’m getting a thin black line over the character sprite.

    [​IMG]

    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.
     

    Attached Files:

    Last edited: Jun 28, 2019
    #1
  2. Miss Nile

    Miss Nile Veteran Veteran

    Messages:
    455
    Likes Received:
    401
    Location:
    Egypt
    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. ^^
     
    #2
  3. Teddy97

    Teddy97 Veteran Veteran

    Messages:
    49
    Likes Received:
    22
    Location:
    Austria
    First Language:
    German
    Primarily Uses:
    RMMV
    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 ?
     
    #3
  4. Miss Nile

    Miss Nile Veteran Veteran

    Messages:
    455
    Likes Received:
    401
    Location:
    Egypt
    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?
     
    #4
  5. Teddy97

    Teddy97 Veteran Veteran

    Messages:
    49
    Likes Received:
    22
    Location:
    Austria
    First Language:
    German
    Primarily Uses:
    RMMV
    Yes, only in zoom mode.
     
    #5
  6. chaucer

    chaucer Veteran Veteran

    Messages:
    236
    Likes Received:
    354
    Location:
    Lost at sea
    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
     
    #6
    Teddy97 likes this.
  7. Bex

    Bex Veteran Veteran

    Messages:
    1,265
    Likes Received:
    299
    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?
     
    #7
  8. Teddy97

    Teddy97 Veteran Veteran

    Messages:
    49
    Likes Received:
    22
    Location:
    Austria
    First Language:
    German
    Primarily Uses:
    RMMV
    @chaucer
    Thank you, mate! Adding a blank space for each cell worked.
     
    #8
  9. Kes

    Kes Global Moderators Global Mod

    Messages:
    20,945
    Likes Received:
    10,652
    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.

     
    #9
Thread Status:
Not open for further replies.

Share This Page