Super Spooky House Part 1: Darkness & Torchlight

2

Index

Attached Files

The following files have been attached to this tutorial:

.capx

superspookyhouse-partone.capx

Download now 235.39 KB

Stats

6,012 visits, 12,366 views

Tools

Translations

This tutorial hasn't been translated.

License

This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

Method the Third: Lerping Light Switches

Begin by covering your layout with black sprites, each Sprite completely covering a room. I would add a picture here, but all you're going to see is black.

Go to the Events and add two Events:

Now this means that when the Character is overlapping the Blacksprite, it fades to transparent (0 opacity) and when it is not it fades back to blackness. They need to be a subevent of For Each, otherwise the second event doesn't trigger.

The 0.1 is essentially the speed of the fade, the closer to 1 the faster it goes. Change it to what suits you.

Now you have these cute little rooms where the lights go on and off when you enter the room, which again is difficult to capture in a screen shot.

This method is best for a set up like this, with lots of small areas. If you're in a large environment then the hard edges feel unnatural. It could also be used for hidden areas, for example if you were to walk up next to a certain wall then the area would reveal inself.

It's easy to have multiple lights in this method, maybe an enemy or NPC triggers the lights as well, or after you push a button certain lights stay on permanently.

  • 0 Comments

  • Order by
Want to leave a comment? Login or Register an account!