Why 40 frames? Cause rpg maker xp runs at 40 frames a second so they will only be getting hurt every second instead of 40 times a second. To fix this we will need to add a wait after the party gets hurt.Īfter the change hp command add a wait for 40 frames. The problem is because we forgot to set a wait time after each time the players party gets hurt so they get hurt 40 times a second because rpg maker xp runs at 40 frames a second. Something's wrong my party dies almost instantly. Here you can set it to harm or heal the player but in this case we want to hurt the whole party so click on Decrease then set the operand to constant and whatever number you want. Right in the conditional branch above else we will want to make it so it hurts the player. 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 |