1: Getting Started
2: Building Logic
5: Game Mechanics
6: Advanced Topics
7: Testing & Tuning
8: The Last 10%
M1: Mobile - Intro
M2: Mobile - Basics
M3: Mobile - Services
M4: Mobile - Publishing
B: How-To Guides
3.0 Drafts (In Progress)
What are Blending Modes?
When semi-transparent images are drawn, and particularly when two or more overlap, the graphics engine has to know how to draw the overlapping area. This is known as blending.
Blending Modes are the equations used to determine how to draw these semi-transparent images. We support 13 modes in total. There's no better way to show this than through a live demo.
Pretty neat, eh? But you may wonder which ones really matter.
In reality, the majority of games get by with just "Normal" (the default), "Add" and "Multiply."
How to Set the Blending Mode
Blending Modes can only be set during custom drawing, which is to say, only inside the "when drawing" event.
If you'd like an entire actor to draw in a semi-transparent fashion and use a different blending mode than the "normal" mode, you'll want to use the following approach.
Currently, blending modes beyond a "normal" blend only work for web (Flash) games. Blending Mode support will be improved in Stencyl 3.0 by becoming a direct property you can set on an Actor or an entire Layer.
Challenge: Name that Game
Although most games can get by with Normal, Add and Multiply, can you cite instances (from real, shipping games) where other blending modes have clearly been used?
Last Updated: 2013-01-29 by Jon
6964 have read this article
Disclaimer: The Stencyl Team does not actively monitor comments on articles. If you're seeking help for your game, please ask a question on the forums. Thanks!