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.

Daniel's dual fog script

So I heard about Daniel's Dual Fog script when I was looking over Calibre's cosmetic lighting tutorial. So after hours of searching I finally find it and lo and behold no demo ... ouch 1 for me.

So I get the script, read the comment section at the top and think I figured it out so I started an event and put the following in:

dualfogissueexample2.png


So after I get all this in I playtest with the area I did the event in as my starting point (for testing reasons) and I get:

dualfogissueexample.png


So what exactly did I do wrong? I'd really like to use this script but if I can't get it to work right ... anyway, any help would be great!
 
Your problem is the fact that the event-based script code does not continue a line through a line break. Instead of

Code:
$game_map.fog2_name =

chickenquesthouse2fog.png

Try this:

Code:
n=chickenquesthouse2fog.png

$game_map.fog2_name=n

You also might want to lower the opacity. That's your biggest problem, as 255 is completely opaque (meaning you can only see through parts of the image defined as transparent, which is only one specific shade of one specific color)
 
Glitchfinder":24zsalmt said:
Your problem is the fact that the event-based script code does not continue a line through a line break. Instead of

Code:
$game_map.fog2_name =

chickenquesthouse2fog.png

Try this:

Code:
n=chickenquesthouse2fog.png

$game_map.fog2_name=n

You also might want to lower the opacity. That's your biggest problem, as 255 is completely opaque (meaning you can only see through parts of the image defined as transparent, which is only one specific shade of one specific color)


Thank you for the help, unfortunately when I attempted it neither fog appeared on screen.

As for the 255 opacity that's just the way it is. I set up all my custom fogs as such.
 

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