Pueden descargar el paquete de la Unity Asset Store Dando click aqu铆
Introducci贸n
Bienvenida y presentaci贸n del proyecto
Instalaci贸n de los SDKs
Empezando Nuestro Proyecto
Inicializar el proyecto
Control de versiones
Importando nuestros assets
Teor铆a de Gameplay
Como resolver problemas de gameplay
Match 3 simplificado
Mec谩nica Principal
Creando la cuadr铆cula
Ajustando la c谩mara
Sistema de coordenadas para instanciar las piezas
Instanciando las piezas en la cuadr铆cula
Moviendo las piezas
Intercambiando las piezas de lugar
Permitiendo solo ciertos tipos de movimientos
Creando las funciones del match 3
Usando el match 3 en nuestro juego
Eliminando los matches por defecto
Colapsando las piezas
Match 3 combo
Rellenando las piezas
Mejorando la animaci贸n de las piezas
Publicacion
Momento del primer build para Android
Momento del primer build para iOS
Dise帽o del juego
Hablemos de dise帽o
Agregando un sistema de puntos
Sistema de tiempo
Interfaz para el sistema de tiempo
Creando sistema de UI
Pantalla de game over
Agregando funcionalidad a la pantalla de game over
Reiniciando el juego
Agregando audio
Terminando el juego
Conclusiones
Conclusiones del curso
You don't have access to this class
Keep learning! Join and start boosting your career
Welcome to the world of motion in Unity! If you are looking to add motion capability to your parts in an efficient and fluid way, the DotTween tool is your perfect ally. In this class I will guide you step by step to make your parts move the way you want them to. Let's start bringing your project to life!
DotTween is a powerful asset from the Unity store that provides animation tools to achieve smooth and natural movements. Here's how to add it to your project:
Tools > Dot Tween > Dot Tween Utility Panel
inside Unity, and click "Setup DotTween" to complete the installation.Now that you have DotTween ready in your project, it's time to program the motion in your scripts. Let's write a simple function that receives target coordinate parameters:
using UnityEngine;using DG.Tweening; // Include the DotTween library
public class MyScriptPiece : MonoBehaviour{ public void Move(int destX, int destY) { transform.DOMove(new Vector3(destX, destY, -5), 0.25f) .SetEase(Ease.InOutCubic) .OnComplete(() => { // Update position this.x = destX; this.y = destY; });} }} }
To verify that your motion function works correctly, you can set up a test function inside Unity:
public void MoveTest(){ Move(0, 0); // This is a test point}
// Decorator to make the function accessible from Unity[ContextMenu("Test Move")].
This code snippet creates a simple test to see the move in action. Once you load the script, when you click on the Unity context menu (the three dots on the component), you will see the "Test Move" option. When you select it, your parts should move to position (0, 0) in the stipulated time.
If you want to quickly test functionality without altering your code base too much, use decorators such as ContextMenu
. With them, you can evaluate the behavior of functions directly from the Unity editor without having to change the input values.
The next step is to develop a system that allows you to control when and where your pieces move according to your game requirements. You can experiment with different time values and Ease types until you find the exact effect you are looking for.
Explore the settings and soak in the possibilities that DotTween offers. With each setting, your digital world will become more authentic and dynamic - there are no limits to your imagination!
With these steps, you are now equipped to generate stunning movements in Unity. Remember that practice is key; keep exploring, tweak parameters and discover what DotTween can offer you in your game creation journey. If you have questions or experiences to share, leave your comments, we'd love to hear from you!
Contributions 3
Questions 3
Pueden descargar el paquete de la Unity Asset Store Dando click aqu铆
Amo este curso. Gracias!
Want to see more contributions, questions and answers from the community?