Switch to Book Layout1: Getting Started2: Building Logic
3: Actors
4: Scenes
5: Game Mechanics6: Advanced Topics7: Testing & Tuning8: The Last 10%M1: Mobile - IntroM2: Mobile - BasicsM3: Mobile - ServicesM4: Mobile - PublishingA: Troubleshooting
B: How-To Guides
C: ReferenceD: Resources3.0 Drafts (In Progress)
|
||
|
Level: Beginner
Blending ModesContents
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 ModeBlending 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.
The FutureCurrently, 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.
Summary
Challenge: Name that GameAlthough 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!
1 Comment
Leaufai
There is still mention of patch 2.5, even though that has morphed into 3.0 0 9 months, 2 weeks ago |












