News: 11 March 2016 - Forum Rules
Current Moderators - DarkSol, KingMike, MathOnNapkins, Azkadellia, Danke

Author Topic: Distorted sprite  (Read 641 times)

Tailo

  • Jr. Member
  • **
  • Posts: 10
    • View Profile
Distorted sprite
« on: May 30, 2018, 02:23:00 pm »

Hi.

I hope you can help me, because I do not know what else I can try to solve the problem.

The issue is that I tried to change a sprite whose size is 32x32 for another 64x64. The sprite in question is the typical character photo that appears next to the dialogue box when a character speaks.

I managed to get the game to recognize the sprite as one of 64x64, but when loading the image, it only loads the first 16 tiles well, the rest is distorted or simply draws incomplete figures of sprites that appear on the screen. I have tried to do the mapping with different codecs in tile molester being the results worse than the problem in question. I leave you a capture so you can see it. Thank you.

nesrocks

  • Hero Member
  • *****
  • Posts: 565
    • View Profile
    • nesrocks.com
Re: Distorted sprite
« Reply #1 on: May 30, 2018, 02:29:52 pm »
Is this an atari 2600 game?

Tailo

  • Jr. Member
  • **
  • Posts: 10
    • View Profile
Re: Distorted sprite
« Reply #2 on: May 30, 2018, 04:27:54 pm »
No. The game is DBZ: Legacy of Goku for GBA.

May 31, 2018, 01:31:25 pm - (Auto Merged - Double Posts are not allowed before 7 days.)
I found the problem, but not the solution. Although the program recognizes it as a 64x64 sprite (800h bytes) it only reads the first 200h bytes of the image (32x32 pixels). For that reason the first 16 tiles are seen correctly. From there he reads the following sprites on the screen and obviously they are distorted. I thought I had found the function that ordered to read those 200h bytes and I changed it to 800, but I only managed to distort it even more ...
« Last Edit: May 31, 2018, 01:31:59 pm by Tailo »