Fog of war? Examples?

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Hey guys,

    So I'm wanting to add a Fog of War effect into my game. I've seen the basic versions out there - using actives and transparent windows etc, but none I've seen can handle multiple, separate instances of light areas, at least, not on a grid. So for example let's say I've got my Player who reveals fog in an area around him, and off in the distance there's a torch that also lights the area, but between the two objects there is no light, so it therefore remains shrouded. How can I achieve this?

    I've never dabbled with frame effects before, nor played with any of the HWA stuff as everything I've done previous has been pretty basic. Any pointers or examples would be fabulous. Be gentle.

    Thanks guys!

  • You can easily and a single condition that checks if the alpha level of the "fog" active is >= 255 and then destroy or trigger some flag that keeps the alpha level at 255. Also thanks Marv for your library of examples! They have really been a guide for me throughout all my projects.

    Everytime I ask for help in the forums, I must help another member in the forums.<3

  • Hey guys, really appreciate the example(s). I've done something similar with a tiled 'veil' so to speak before, but with transparency effects - the alpha channel stuff seems less intensive on the cpu and just looks better, which is great.

    I'm trying to go full circular though, which means increasing the fog object count and using smaller fog actives to increase fog 'pixel' count. Hex based also hides the edges more - love how your blend effect smooths the edges out to disguise the methods in the examples, though, very nice indeed.

    Very helpful, thanks all.

  • Holy Synchronicity, Batman!

    Just found an amazing example of the effect over on TheDailyClick forum.

    Please login to see this link.

    If this is against any rules for posting linkies to other forums, I apologise and feel free to delete, but thought I had to share.

  • Here's an example I made:

    Please login to see this attachment.

    Hope it helps.

    I am trying to implement this post's example but using rays instead of just a circle and I am having difficulties mkaing it work...

    Would it be possible if you could check out if you could create something like this?

    I am not very familiar with fast loops and I can't figure out what I am doing wrong.

    Old School Shoot-em up for Android :
    Please login to see this link.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!