Flashlight - Shadow Casting Plugin

Index

Stats

545 visits, 1,119 views

Translations

This tutorial hasn't been translated.

Tools

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.

  • 3 Comments

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