0
\$\begingroup\$

My partner and I are creating a 2D RPG with D&D elements with Unity.

I am very new to Unity and making games in general, apart from 2 games which I created with Java and the rougelike tutorial which I did with Unity. For this university project we have 4 months and my partner has the job creating tiles, sprites, sound and music. I will program the game.

My question is:

Can we create 32x32 tiles and 64x64 sprites in the same tilemap or does everything need to be the same size?

If we can combine them, will a 64x64 sprite on a 32x32 tilemap take 4 tiles, or can we scale it down to one tile?

\$\endgroup\$
  • 1
    \$\begingroup\$ Can you clarify what's leading you to want to mix tile sizes this way? General advice when working with low-resolution/pixel art sprites is to keep the pixel density the same for a consistent appearance. There might be a good reason to break this guideline in your game but we'll need to hear about that from you. We can't tell you what sprite size to use - that's a choice you'll need to make for yourself. \$\endgroup\$ – DMGregory Aug 10 at 9:04
  • \$\begingroup\$ The Main reason we thought to use different Tile/Sprite Sizes is because the background doesnt need as many details as a person/enemy or something like this. Thats why we thought 32x32 for tiles and 64x64 for sprites \$\endgroup\$ – Christopher Aug 10 at 9:21
  • 1
    \$\begingroup\$ That sounds then like your tilemap is using 100% 32x32 tiles. Your character sprites, which are drawn over the tilemap, not embedded in it, can be any size you want. They don't have to conform to the grid, and can walk smoothly from one grid cell to another, overlapping as they go. Did you try a test to see what that looks like? (Say, grabbing some existing sprites at the resolutions you're thinking about for a quick & dirty mock-up) Did you run into any particular problems making this test work? We can help you solve problems, but at present it's not obvious what obstacle you'd face here. \$\endgroup\$ – DMGregory Aug 10 at 9:26
  • \$\begingroup\$ Sry, I try to clarify. If I use a 32x32 tilemap, does my 64x64 Sprite of my playable character take 4 tiles? \$\endgroup\$ – Christopher Aug 10 at 9:31
  • \$\begingroup\$ The links really help me :) \$\endgroup\$ – Christopher Aug 10 at 9:37
0
\$\begingroup\$

Yes, you can have both 64x64 tiles and 32x32 tiles. If you want both of them to take only one square, you will have to adjust the pixels per unit. If you don't know what that is, please comment and I'll help you.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.