Flashlight - Shadow Casting Plugin

1

Index

Stats

7,323 visits, 13,804 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.

Published on 20 May, 2018. Last updated 19 Feb, 2019

Conditions

Enabled. Returns true if the plugin is enabled to detect objects and draw shadows.

Is blanked out. If the object height is zero then the Flashlight plugin hides the light if it overlaps a shadow-object’s collision polygon. This is because the Flashlight object is essentially inside and obstacle and no light can get out. This condition returns true if this is happening.

Expressions

LightHeight. The pixel height of the Flashlight’s height.

LightRadius. The radius of the Flashlight object’s light. The light diameter (2 x radius) must always be smaller than the shortest vertex length for any object’s collision polygon shape. This is a limitation of the plugin because it does not calculate shadows where two sides of the same object are being illuminated.

  • 8 Comments

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