You don't have access to this class

Keep learning! Join and start boosting your career

Aprovecha el precio especial y haz tu profesión a prueba de IA

Antes: $249

Currency
$209
Suscríbete

Termina en:

0 Días
12 Hrs
0 Min
12 Seg

Generar Tilesets

21/30
Resources

How to generate tiles for a game?

When designing a video game, tiles are essential to create reusable scenarios. A tile is a square figure that can be replicated. If you remember classic games like Mario Bros, the stages were composed of squares; each of them is a tile. Creating a tile system will help you design your game efficiently.

How to cut out a perfect shape in Photoshop?

To start with, you can use Photoshop to create your backgrounds or scenery. If you want to cut out a perfect shape, follow these steps:

  1. Use the square selection tool. Hold down the Shift key while drawing to make sure the square is perfect.
  2. Once the desired area is selected, click on the thumbnail of your layer by holding Command or Control on your keyboard.
  3. Then, on the floor layer, use Command or Control + J to crop only the selected area.

Is it possible to automate tile clipping?

Yes, Unity offers tools to automate tile clipping with Spritesheets:

  1. Select the image and set it to Multiple Sprite Mode in Unity.
  2. Open the Sprite Editor. Make sure the slice type is set to automatic and select "Delete Existing".
  3. Click on "Slice". The changes applied to the images will be reflected in individual tiles with unique names.

How do I organize a tile palette?

To keep your tiles well organized and accessible:

  1. Create a new palette by assigning it a name, e.g. "Tiles".
  2. Organize your project by creating folders inside Unity to keep your graphic assets organized.
  3. Drag the tiles to the created palette to use them in your scenario.

How to integrate the tilemap into the game?

The next step is to create a Tilemap in Unity to directly use your tiles on the stage:

  1. In the hierarchy, select "Create" and add a new Tilemap.
  2. Start drawing your scenery by placing the tiles on the created tilemap.

What size settings should you adjust?

It is crucial to adjust the size of the tiles to match what you designed in Photoshop:

  1. Check the size of the selected tile and adjust it to the exact pixels in Unity.
  2. If the pixels per unit are not the desired size, adjust the value until the tiles look right in the game.

How to add physical properties to characters and elements?

To make a character physically interact with the scenery:

  1. Add a 2D Rigidbody component to the character to apply gravity and mass effects.
  2. Include a 2D Tilemap Collider on the stage to define collision areas.
  3. Add a 2D Composite Collider component to simplify collision calculations.

How to ensure accurate collisions?

Make sure that collisions occur correctly between characters and tiles:

  1. Use a 2D Capsule Collider to define the collision shape of the character.
  2. Adjust the size of the Capsule Collider to match the edges of the character to ensure accurate collision detections.

How to fix visual problems in the tilemap?

If you notice unwanted lines between tiles:

  1. Identify bleeding in the tiles.
  2. Adjust the tile spacing by one pixel to visually solve those problems in Unity.

Finally, by integrating all this, your character should now be able to interact properly with the floor, and the stage should be ready to implement animations and more dynamic features in your game. Go ahead and share your progress!

Contributions 12

Questions 1

Sort by:

Want to see more contributions, questions and answers from the community?

De a poco…no soy bueno en unity pero ahí vamos!!

Tuve algunos problemas con Unity pero ya pude resolver y avanzar!

Trato de hacerlo lo mas simple posible, se me esta acabando la suscripción y quiero aprovecharla al máximo!

Michy pero falta pulirle ![](

Vamos con todo!!!

Muy bacano ver como ya tiene forma y el juego cada vez esta mas cerca de la realidad

Ya va teniendo mejor forma✨✨![](https://static.platzi.com/media/user_upload/image-888d3bd0-dc4d-43c3-a3f2-0d3ad1259852.jpg)

este es mi juego
estoy copiando por que no tengo adobe animate

Poco a poco creando otro mini juego