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 [solved for now]

I have no understanding to the usage of terrain tag. I was hoping to set things so that when the player stepped on a specific tile, then that player would be attacked by a monster or be transported to another spot. Does anyone have any suggestions, or know where I might find a tutorial on terrain tag?
 
It sounds like you are asking for functions that are handled by events.

Unless you mean, "...stepped on a tile with a specific terrain" i.e. any time you step on a sand tile, you are attacked by a scorpion.
or if you step on a water tile, you transport to an underwater map. (or something like that)

Inherently, terrain does nothing. It's there as an option for you to use as you wish, limited only by your creativity.
The only practical uses I've seen so far are a terrain based random encounter system,
or the vehicle system where you can only land or use your canoe, boat or dragon over certain terrain types.

As far as I know, the only built-in command that accesses it is the "Control Variable" command.
You can set a variable to a character's (player or event) current terrain. (the tile on which it stands)

so, you could have a "parallel process" event checking the players terrain, then using the conditional branch,
executing another command (battle, transport, ....) when the terrain type matches.
 

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