Building a Dynamic Shadow Casting Engine in AS3 – Active Premium
Today, we have a fantastic Active Premium tutorial exclusively available to Premium members. This tut is not for the faint-hearted, but for advanced ActionScripters and game developers it’s a must-read!
Preview
Let’s take a look at the final result we will be working towards:
Move the shape around with the mouse, and notice how the shadows from the light sources are rendered.
This Premium Tutorial is Filled with Creative Tips
Dynamic shadows give game developers a way to recreate real life experience with lights and shadows. Every time we move, we cast shadows according to the position of the light sources around us. Dynamic shadows are no different than that. Our goal is to transfer this experience to the virtual world by creating an engine that will be able to cast these shadows.
These are common in 3D games. You have probably played a 3D game or watched a gameplay video and noticed that the shadows in most of them are dynamic. However, due to the complexity of the code, 2D games lack a good implementation of shadows, and often end up using a static alternative.
The objective of this tutorial is to implement dynamic shadows in a 2D environment.
Active Premium Membership
We run a Premium membership system which costs $9 a month (or $22 for 3 months!) which periodically gives members access to extra tutorials, like this one! You’ll also get access to Psd Premium, Vector Premium, Audio Premium, Net Premium, Ae Premium, Cg Premium and Photo Premium too. If you’re a Premium member, you can log in and download the tutorial. If you’re not a member, you can of course join today!
Also, don’t forget to follow @envatoactive on twitter and grab the Activetuts+ RSS Feed to stay up to date with the latest tutorials and articles.
View full post on Activetuts+

