15,302

Views

Beginner

Level

0

Comments

Effects

by Jon (Updated on 2014-04-11)


Contents

  • What are Effects?
  • Demo
  • Effects & Performance
  • Gotchas


What are Effects?

Effects let you add visual flair to actors, without having to add new animations or additional code to the game. All effect-related blocks are located under Actor > Effects.

 

Demo

The following demo demonstrates all of the available effects in Stencyl.

 

 

 

Effects and Performance

Don’t continually re-apply effects every frame of the game.

This will drain performance because the backing “bitmap” for the Actor’s animation will continually be re-generated per-frame.

Effects in themselves are not performance impacting. It’s the application of effects that takes relatively long.

 

Gotchas

  • Effects persist, even when an Actor’s animation changes.
  • Only 1 effect may be applied at a time to a particular actor.
  • Some effects may work only in Flash. These effects are denoted with a red, Flash icon.
  • On the Desktop and Mobile targets, all effects except tint are simulated using software and consequently can slow down games, especially when you use "remove all effects"
Tip: On Desktop and Mobile, if you want to tint an actor and un-tint it, instead of using "remove all effects", apply a white tint to the actor, which has the same net effect, without the performance penalty.

 

Summary

  • Use effects to add visual flair, without importing new animations.
  • Use effects responsibly to maintain good performance.
Disclaimer: All articles are geared towards Stencyl 3.0 and above. Use comments to provide feedback and point out issues with the article (typo, wrong info, etc.). If you're seeking help for your game, please ask a question on the forums. Thanks!

0 Comments

Be the first to make a comment!

Sign In to Comment