![]() ![]() Note: i will hurt the player as long as they are on the rocks. Now we will make the part where it hurts the player when they are on the rocks. When the player is on the rocks the terrain tag will be set to 1 and when the player is over the grass it will be set to 2. If you remember from the tileset we set the terrain tag of rocks to 1. Set it to Variable and the variable you just made. Create a Conditional Branch right under the Variable you just made. Now we want to setup how the rocks and grass interact with the player. Set the Operand to Character, Player's, Terrain Tag. ![]() Make a new event without a graphic and set the Trigger to Parallel Process.Ĭreate a control variables event and name it something like Terrain Tag. The next step will be to make the event to track what terrain tag the player is currently on and heal or damage the player. Hit ok on the database to ensure the tags are set. We are going to use rocks to damage the player and the grass to heal the player. Set the Rocks for 1 and the Grass for 2 like the example below. Open your database and go to tilesets and the Grassland tileset then click on Terrain Tag. For this demonstration we will be using the grass and the rocks. Few things I will be covering in this tutorial is healing tiles, damaging tiles.įirst lets set some terrain tags in the tileset editor. This tutorial is to teach you all the useful things you can do with the Terrain Tags. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |