Jump to content
New account registrations are disabed. This website is now an archive. Read more here.

Recommended Posts

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.

 

YYHyW.png

 

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.

 

m7dBO.png

 

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.

 

v7GSV.png

 

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.

 

bEHjZ.png

 

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.

 

HcNEx.png

 

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.

 

232jf.png

 

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.

 

0G98O.png

 

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!

Share this post


Link to post
Share on other sites

Nice job, writing this pol. I've only used terrian tags once and that was for a script I was using. This will prove useful.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By Polraudio
      Santa Sprite Found Here
       
      Welcome to the official holiday game contest. In this contest you will be asked to make a holiday(christmas) themed short game. We dont want any gore/blood in the game so make it as family friendly as you can :thumbsup:.
       
      Rules:
      Game must be Christmas themed in some way.
      Can use any tiles, sprites, etc....
      May use scripts, events, etc....
      May use anything you wish as long as you provide credits. If you dont know who to credit dont use the resource :ok:
      Game must have a beginning, middle, and end with credits at the end.
      Must have at least 1 battle.
      Try to keep the game between 5-30min
      Dont make battles impossible(Dont want to sit there and grind forever just to beat the next enemy/boss)
      Can use any RPG Maker as long as its made by Enterbrain.
       
       

      ALL RESOURCES THAT YOU DIDNT MAKE MUST BE IN THE ENDING CREDITS! IF YOU FAIL TO PROVIDE CREDIT I MAY FAIL TO JUDGE IT  
      Notes:
      Game will be judged on but not limited to the following.
      Story, Grammar, Content, Time, Gameplay, Mapping(#1 thing im looking for), Music, etc...
      The game should be good in all areas like a normal game. I dont want to play a game where i just hit 1 button the entire time or battle enemies 90% of the time.
      Make everything match. If you use RTP style stick with RTP style. If you use a non-rtp style there should be no RTP style stuff in it. Same for music, no one wants to play a game where theres rock music playing when it should be calm music lol.
       
      Examples to help:
      Santa might not be able to deliver all the presents in time and he has tasked you to deliver presents to a town for him.
       
      Santa got captured by bigace and as an elf its up to you to save him or else Christmas will be ruined.
       
      Bob the reindeer has gotten sick and cannot pull the sleigh this year. Its up to you to find another reindeer or a cure for bob.
       
      Marked has stolen all the presents from your house. When you find him you can beat him up and take your presents back. If your a bad boy or girl also you can choose to steal all his presents :P.
       
      Polraudio(monster 11) the demon has enslaved your town and killed santa. You and a team of people team up to kill polraudio to revive santa. The life force from polraudio is enough to revive santa.
       
      Your job is to cook a good meal for your family for Christmas. Tasks might involve getting into a battle with food just to secure them for cooking.
       
      Those are just some of the things you can do if your not good at coming up with ideas.
       
      Prize:
      Since this is a game development site and were all game developers first prize will be a game where you develop games :P
      1ST: Game Dev Tycoon; If you already have the game and want something else i can only offer points. EDIT: Will throw in The Witcher: Enhanced Edition Director's Cut only if 8 people joined the contest.
      2ND: 200 Points
      3RD: 50 Points
       
      Dates:
      The start date is now.
      The duedate for all submissions is December 31st 2013. I wont accept any submissions later than January 1st.
       

      ALL SUBMISSIONS MUST BE PRIVATE MESSAGED TO @Polraudio

      Santa's List:
      -@Bob423
      -@phionabrie-@Mepps
      -@Luky
       
       
       
      ---
      Hope to see lots of people join :) . If you have any question feel free to ask :thumbsup:  .
    • By Polraudio
      I might just start using blogs again(last time was in 2009) to give me something to do and maybe a way to keep me working on my game. As you may know im working on a 2d open world game. You can kind of say its a 2d skyrim clone with some more features. In the past few days i been working on refining the systems. I been working on the following in the past few months:
      Dynamic Rep System - Every action has an reaction. Meaning that if you make enemies with someone chances are that their friend will not like you at all or less depending how well their friends like you. They may even refuse to talk to you. If everyone in the town hates you chances are you may not be allowed into the town for very long and may have to pay to even be there, shops may charge you more, might not be able to do quests till people like you again. But word of your bad rep may get bandits to like you or fear you or even just try to take you out. Now if people like you in the town they may give you gifts, discounts, free places to stay, etc....
      Resource Collecting - Get dem goods. The resource collecting is about the same as skyrim but slightly more advanced. To be able to collect certian resources better you will need to have the knowledge on how to collect that resource. You still wont be stopped for not knowing to get it but you will be crippled by lots. If you havent learned how to lets say mine iron there may be a small chance of you getting the iron. now if you know how to get the iron(read a skill book) you will always get iron but the higher your iron mining skill is the more iron ore you may be able to find. Each type of resource will have a level that will increase chances of finding more.
      Crafting - 3x3 Crafting bench(sorry this isnt minecraft)? Crafting will be the same as skyrim in almost every way. Still have a bit to work on this so not to much info as of yet. Only difference between skyrim and my open world game is that you can take apart items for most of your resources back. Since potions are liquids you will only get the vial back(wish i had a way to get vial after using a potion, might try to code in the future).
      Timed Events - Get your holiday on. I may add timed events for on christmass, thanksgiving, etc... On these days you will be able to find gift boxes, holiday themed armor and weapons, santa O.o, easter bunny!, etc... I will also add other type of events like random events. Maybe the god you chose as your god might abudct you and ask for a favor or throw you in hell for a while if you been bad to that god. When you complete the gods task you may get rewarded with an item, or even a power that you can use for a few hours.
      Player Home - Home sweet home. You may be thinking "What do i need a home for?". The answer is simple. You need some place to store your stuff so you dont get overweight and crawl like a rock. If i can figure out a way to do this i may add the ability to buy furniture to decorate your home with. Ever thought about running your own guild? Well you can do that also. Just got to find out how in game cause im not going to spoil it for you.

      The game is still far from done. I havent even really started the story yet. The game will comprise of islands, 4 main islands with HUGE cities, and many smaller islands with towns and stuff. I plan on having at least 200+ hours of content once the game gets released and plan on releasing free DLC after the game is out.
       
      Hope you enjoyed that huge wall of text and things to come. If you like it please comment. If you wish to suggest something i could do in the game feel free to :) .
×
×
  • Create New...