Search the Community
Showing results for tags 'terrain tags'.
Found 1 result
-
Terrain Tags By: Polraudio Welcome to the Terrain Tag Tutorial. This tutorial is to teach you all the useful things you can do with the Terrain Tags. Few things I will be covering in this tutorial is healing tiles, damaging tiles. STEP 1: Tileset Editor First lets set some terrain tags in the tileset editor. For this demonstration we will be using the grass and the rocks. Open your database and go to tilesets and the Grassland tileset then click on Terrain Tag. Set the Rocks for 1 and the Grass for 2 like the example below. We are going to use rocks to damage the player and the grass to heal the player. Hit ok on the database to ensure the tags are set. 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. STEP 2: The Event Make a new event without a graphic and set the Trigger to Parallel Process. Create a control variables event and name it something like Terrain Tag. Set the Operand to Character, Player's, Terrain Tag. So it should look like this. Now we want to setup how the rocks and grass interact with the player. Create a Conditional Branch right under the Variable you just made. Set it to Variable and the variable you just made. Set it to Equal to and Constant 1. So it should look like this. If you remember from the tileset we set the terrain tag of rocks to 1. 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. Now we will make the part where it hurts the player when they are on the rocks. Note: i will hurt the player as long as they are on the rocks. Even when not moving. Right in the conditional branch above else we will want to make it so it hurts the player. Go to page 3 and Change HP .... 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. i will be using 50 for this example. So it should look like this. Now you can play test and enjoy. But wait... Something's wrong my party dies almost instantly. Why is that? 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. To fix this we will need to add a wait after the party gets hurt. After the change hp command add a wait for 40 frames. 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. Now as you noticed after play testing again everything's working right except you have no clue when your getting hurt. To fix that add a screen flash right above the wait command. On the 2nd page click Screen Flash .... Set the sliders for green and blue to 0 while keeping red at 255 and strength at 255. Set the time for 2 frames. Any lower than 2 frames and it will not show sometimes cause rpg maker xp is not a constant 40 frames per second and sometimes is 39 frames per second so it will be skipped sometimes unless you have it set to 2 frames. So it should look like this. Now that we got the screen flashing we also need to make a noise when the party gets hit. It doesn't matter where you place it as long as its before the wait command. Make a play se ... command and set it for whatever sound you want. After everything's done your event should look like this. Congratulations you now know how to make a hurting and a healing event using terrain tags without using tons of events to get the same effect. Now your saying to yourself "But... we didn't go over healing the player!" but we did go over healing the player. It may not seem like we did but we did. To make it heal is the same way as making it hurt except we use change the variable, set it to increase party HP, change the screen flash to blue and change the sound. I will show you how to add healing in the pic below. Download: http://www.gdunlimit...in-tags-521.zip Hope you enjoyed this little tutorial and as always. Thanks for reading :D. If you want to request an event tutorial for me to do with rpg maker(any version) just shoot me a private message. Note: This tutorial is a GDU exclusive and shouldn't be posted anywhere else!
- 2 replies
-
- terrain tags
- tags
- (and 5 more)