Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by Rungo73

I'm trying to create a flickering effect on a tileset layer.

I have a main layer with my scene, a collision layer and then a third layer which are the lasers in my map. I want the lazer layer to flicker as a visual effect.

My thought is to randomize the alpha of this layer. Is this possible and how would I do it?

1 decade ago by Joncom

Maybe use this plugin: http://impactjs.com/forums/code/layers-js-plugin/page/1

And just before you draw the "lasers", adjust the alpha on ig.system.context.

Make sure to change it back afterward.
Page 1 of 1
« first « previous next › last »