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.
Part of sprite missing in Godot
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.
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 use Gravit Designer for SVG and it's a really good program and runs in a web browser. https://www.designer.io/en/
I'm not recommending it as a solution but as a way to debug.
- Edited
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.
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!