#Are you following a tutorial? If you
1 messages · Page 1 of 1 (latest)
Now that you’ve taken care of decorating the world and made it interact better with your character, it’s time to add some more gameplay. In this tutorial, you’ll learn about another important element of a game: Triggers, which allow characters to collect objects (amongst other things).
this works because its a tileset
And what is the sprite youre having issues with now?
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
its mainly text
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?
no clue the only time ppu is mentioned is in that image
Dustin, what specifically is too big or too small, let's start there.
The health collectible you're showing in the inspector?
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
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.
Just like this says
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
There you have it, the sprite is now properly sized.
but what about this
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)
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
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.
in pixelart i was always able to set it to 16x16 and it just worked
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.
like the project its 64x64 but that fruit is wrong
without reference im assuming as a fruit its too big
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
this is what i get for always using a tile sheet, i understand now thank you for the help
No problem, good luck!
not sure if you use Tiled but kind of wish this tutorial also used it, makes life easier
Not sure what Tiled is, sorry.