Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Terrain Tag

Basically, there are eventing and scripting commands that check if a tile has a certain terrain tag, and acts depending on it. For example, if you wanted to have a swimming script, you could program the script so it checks if the tile in front of you has terrain tag 1 (you would set it in the database to the tiles), and if it does, it lets you dive in.

You can also set terrain tags to variables, etc. for events. Use your imagination, I'm sure you can think of things to use them in.

Regimos
 
iCheeze":3028ew3n said:
Well then you messed up in the coding somewhere.

how could i have messed up with the coding if i haven't even coded anything yet? i think you need to read my posts again.
Souloux":3028ew3n said:
Say I have a jumping system through events. how would i set the terrain to prevent the main character from jumping onto a ledge that is too high up?
 
May I have a look at your jump system first?

Because I'm pretty sure character can jump to anywhere if you set "Through ON" in command "Set Move Route..".

Or check at the Passability of tileset and layers in map. The passability of tile in highest layer will replace the lower one~
(e.g. you put the water(cannot walk on it) on Layer 1, and put grass(can walk on it) on Layer 2, the character will be able to walk on the grass even it is on water.)
 
Basically you set a variable depending on the height of where you're at. You make it impossible to jump to a higher ground if the variable:height of that tile is higher than the tile you're currently on; but you can jump to lower ground if the variable is lower than the tile you're on.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top