Glow bloom effect help


(B6ka) #1

Hi, I am trying to apply bloom effect on an entity using the punk.fx library. I do the following:

  1. I import FXImage and BloomFX into the entity I want to bloom.

  2. I set the FXImage as the graphic in the entity

    _sprite = FXImage.createCircle(20, 0xFF00FF);

    graphic = _sprite;

  3. I create the effect var bloomFX:BloomFX = new BloomFX(); inside the entity.

  4. I apply the effect to the image. _sprite.effects.add(bloomFX); inside the entity in the added method.

Unfortunately, nothing happens. I do not get any errors. I would really appreciate any help. Thanks.

I would also appreciate any tips on nice special effects in FP.


(B6ka) #2

Managed to make the bloom effect running. Here is my implementation of a class that extends the world class. I extend all my levels from this class, and the effects are applied automatically to all of the levels.

MyWorld.as (1.7 KB)