#Are you following a tutorial? If you

1 messages · Page 1 of 1 (latest)

cerulean mulch
#

this works because its a tileset

magic quest
#

And what is the sprite youre having issues with now?

cerulean mulch
#

all of the object sprites, like house and trees

#

and this

magic quest
#

These look normal to me? Do you have a picture of what it's supposed to look like? I can't find a reference in the tutorial

cerulean mulch
#

its mainly text

magic quest
#

Right, but what size are they supposed to be? I see normal sized trees, a normal sized house, normal sized boxes, and maybe a large fruit?

cerulean mulch
magic quest
#

Dustin, what specifically is too big or too small, let's start there.

#

The health collectible you're showing in the inspector?

cerulean mulch
#

thats the problem i dont know, i was hoping there was someway to get the proper image size without need an art tool

#

a picture would have been great

magic quest
#

Well you can determine the size, in this case, by looking at the pixel height/width of your objects.

You're showing the fruit in the inspector. Look at the preview window of the image to see how big the image is, then adjust PPU from there.

magic quest
cerulean mulch
magic quest
#

Okay, so you have a 256 x 256 sprite. Your PPU is 64. What happens, now, when you set your PPU to 256?

#

For that sprite

cerulean mulch
magic quest
#

There you have it, the sprite is now properly sized.

cerulean mulch
#

but what about this

magic quest
#

196

#

Typically you use the larger of the two

#

Remember that PPU represents how many pixels go into one "unit" of space in your game. So if you want the bag of gears to take up 1 "unit", you want to scale it to its larger size. The fruit is a square, so you tell it to take its 256x256 pixels and squeeze into 1 unit (256PPU)

cerulean mulch
#

this is where im confused, im guessing if its a tile it should be 64 but if its a vfx it should match the image

#

enviroment is the tiles

magic quest
#

For things like that, yes, it should stay consistent with the tile size of your game.

Remember PPU represents how many pixels go into ONE UNIT of space in the world.

Would you want a house to take up ONE UNIT of space (845 PPU)? No, you'd want to scale it to the size of your tiles in a pixel art game, hence making it 64 PPU.

cerulean mulch
#

in pixelart i was always able to set it to 16x16 and it just worked

magic quest
#

To be clear, this is also pretty much pixel art. I am also a pixel artist, but this isn't unique to the artstyle at all. PPU is a representation of how many pixels take up 1 unit of world space, nothing more.

#

If you were making 32x32 pixel art and setting PPU to 16, you were actually doing it wrong. It should have been 32 PPU because your sprites were made for that resolution.

cerulean mulch
#

like the project its 64x64 but that fruit is wrong

#

without reference im assuming as a fruit its too big

magic quest
#

The fruit is not "wrong" and it is actually trying to solidify your knowledge. In your tutorial previously, it told you to set the PPU size based on the resolution of the image before.

You are not properly recalling what they taught you already.

#

They gave you a fruit with a higher resolution and are telling you now to check that resolution and set your PPU accordingly, just like you did before.

#

This time, they are just not holding your hand through it

cerulean mulch
#

this is what i get for always using a tile sheet, i understand now thank you for the help

magic quest
#

No problem, good luck!

cerulean mulch
#

not sure if you use Tiled but kind of wish this tutorial also used it, makes life easier

magic quest
#

Not sure what Tiled is, sorry.

cerulean mulch