void Awake()Initializes variables and set up game states before starting the game.void OnEnable()Executes when the gameObject is enabled.void start()H
1\. I customized my unity starting screen, so I can see the game view and scene window at the same time. 2\. For the Bottom half I put my hierarchy, p
Tilemap is a tool used for storing tile assets and build level designs.To make a tilemap, right click on the hierarchy, go to 2D object -> Tilemap ->
RigidBody 2D adds 2D physics(falling for example) to the gameObject.Select AddComponent and type RigidBody 2DAdding RigidBody 2D will enable the gameO
Get the gameObject's Rigidbody2D componenet and set name for it. For this case it's rigid, but you can call it however you want like rb or body2D.In t
Final part for moving the gameObject by changing it's velocity.
Moving the gameObject by adding force is little bit different from changing the velocity of the gameObject.AddForce is a method that can apply force t
Movement Fixes If you follwed the last tile map tutorial, our tilemap already should have tilemap collider 2D. If you start moving, you'll see our player gameObject moving up and down randomly. > - ...
Just "jumping" is easier than I thought.Make a variable for our jumpingPower, and use it to control our jump heights.We're adding force to our rigidbo