top of page
UNITY 101
WELCOME TO UNITY 101
Read More
Recent Posts
Archive
Tags
Finding the shortest path (Automatic)
This code always finds the shortest path of a graph, it does it automatically. using System.Collections; using...
Shortest Path on Click
Use this script on the player, it's called Patrol. using System.Collections; using System.Collections.Generic; using UnityEngine; public...
States
To create a State that can change between scripts according to a symbol you should use this scripts. Script called Test: using...
Pathfinding
We'll be covering different algorithms in order to find the shortest route: Breadthwise, Depthwise and AStar. using...
Animations 101
Moving from simple GameObject shapes as your interactive players and enemies isn't as hard as it seems. You'll need to download Assets...
Movement towards mouse position
When creating a video game you'll sometimes need a more specific movement while playing or want to move along with your cursor's...
Mouse interaction (Shooting)
Now that we've learned how to do a basic cannon (see previous post), we can move on to a more "complex" type of shooting and this is with...
Patrolling GameObjects
When you want a certain GameObject to follow a path constantly, you first need to create Waypoints: which meas that you need to create...
How to make random generated falling objects
First we create a prefab box enemy with Rigidbody, and you go to the cannon script and paste this in the Update() method. if...
How to clone objects in Unity
Sometimes in a videogame, we want to create instances of objects on run time, for example: bullets, cannon balls, enemies, among others....
Home: Blog
bottom of page