• 2D
  • Part of sprite missing in Godot

Hello, I've encountered a problem in Godot - I wanted to add a sprite in Godot for a game, but when I pasted the image in the Godot file (containing the game's assets) in order to use it in Godot, part of the image appears missing. The image is made of two sub-images. When I tried to add it as a sprite, only one sub-image appeared, the other didn't. The picture below is the proof. As you can see, there's an empty space above that block. That space was supposed to be occupied by a Pickachu pic. But the pic isn't appearing. Is there an error from my side? Thanks.

I'm not totally sure, but my guess is the z_index property of the Sprite node(s) need to be changed. I would try changing the z_index of the pickachu pic to 1 or set the background z_index to -1 and see if that makes the sprites draw in the right order.

5 days later

Well, thank you for your help. But it didn't work. Ok, I'll explain it again. Outside Godot, the picture contains both Pikachu and that block (Pikachu standing on top of it). But in Godot, the picture appears to only have the block, the Pikachu sub-image cannot be seen. I don't know why this is happening. Now, I am currently using both sub-images as separate images. This is working. Anyways, thanks for your help.

It's an SVG. There might be a conversion issue. Try exporting the SVG into PNG for an example in something like inkscape see if that works.

Actually, I use a Chromebook and 2 GB space was occupied when I downloaded Linux Beta into it. So, I don't have much space in Linux storage to download Inkscape. Also, I normally use SVG files, if I convert it into PNG, the quality of the SVG decreases, which I don't like. I make these images using Scratch. Regardless, thanks for your help.

I'm not recommending it as a solution but as a way to debug.

It should work, but I'd recommend importing the SVG into Gravit (you can use the free version) and then making sure that Pikachu is on the correct layer. It appears they are just behind something else.

11 days later

Thank you all for the solutions. I am currently trying to learn VFX using Godot. Regardless, I appreciate your support towards my predicament. Thanks again!