Interactible Game Objects
This could be an NPC or an item.
Last updated
This could be an NPC or an item.
Last updated
We need to make sure only things that are interactive are going to be triggers. We wouldn't want rock conversation when it should be the thing next to it. We'll eventually use the Physics2D system to create a Raycast object to hit this NPC and then start the conversation.
Drag and drop a sprite from the project folder into the scene window. It'll create the GameObject already.
We're going to edit the Unity Layers.
Add three layers: Ground, Interactibles, Player
Assign the Interactible GameObject to the Interactibles Layer.
Assign the Tilemaps/ground to the Ground layer.
Player GameObject to Player layer.
Then, add a Collider2D. When the Player sends out a Raycast (Like an invisible ray, like "Shoot me a message"), it needs to hit something.