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.

Whats the best way to put fog on a map? (solved)

xctive

Member

I was just wonder what the best way to put fog on a map. I want the fog to always be on this part of the map.
 
No problem.

For all maps of a given tileset, there's nothing to it. It's actually in the settings for the tileset-- just go to the "Fog" section, and assign a fog, give in an opacity of about 64, and you're good.

The alternative is a little more complex, but still very simple.

This is one case where Erase Event is actually useful. Basically, on the map that has the fog, put in an Autorun event.

This event will use Change Map Settings to change the fog graphic from, presumably, nothing, to a fog. You can mess around with options from there. End the event with Erase Event. That stops the Autorun from freezing the game, but the event will reset when you leave the map, re-fogging things when you re-enter.
 
If you use he autorun event like Unca Josh suggested you have a short delay before the fog kicks in
if a parallel process is used then it comes in automatic
(excluding the delay you put on the fog command :tongue: )
Both are useful depending on the type of effect you want to create
Just wanted to give you the heads up on that :biggrin:
 

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