Simple Dynamic Lighting Example (Not That Efficient)

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.
  • Hi Everyone,
    I made another example for a user on the forum and thought I would post it here. It's a simple dynamic lighting example (however it isn't that efficient). It uses a layer full of 32x32 black actives that overlay the game layer. When the player moves around each "darkness tile" is updated and the semi-transparency is changed according to the distance to the player and whether or not the player can see the tile. This example uses the "For Each" object as well as fast loops. I'm not sure why some of the tiles start out completely black, they should be at 64 semi-transparency. If you move around they get updated and are fine after that...Tell me what you think.

    -Sumo

Participate now!

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