user123 Posted April 14, 2014 Share Posted April 14, 2014 I want to have multiple twist effects, is this possible?i.e. var stage = new PIXI.Stage(0x66FF99); var asd = new PIXI.GrayFilter(); asd.gray = 0; var dsa = new PIXI.BlurFilter(); dsa.blur = 0; stage.filters = [asd,dsa];But this applies just one type of filter to the whole screen, I want multiple small instances of a twist filter.Any ideas? Quote Link to comment Share on other sites More sharing options...
xerver Posted April 14, 2014 Share Posted April 14, 2014 You applied those filters to the stage, so they cover the whole stage. You can apply any filter to any sprite, just apply the filter to the sprites you want to. Quote Link to comment Share on other sites More sharing options...
user123 Posted April 20, 2014 Author Share Posted April 20, 2014 You applied those filters to the stage, so they cover the whole stage. You can apply any filter to any sprite, just apply the filter to the sprites you want to.Ok, but what I am trying to do is twist effects that affect the whole game/map/screen, not just a single sprite.I will try it out though, im interested in what happens. Quote Link to comment Share on other sites More sharing options...
xerver Posted April 20, 2014 Share Posted April 20, 2014 > what I am trying to do is twist effects that affect the whole game/map/screen> But this applies just one type of filter to the whole screen, I want multiple small instances of a twist filter. Those are pretty contradictory, I'm not sure what you are trying to do. You said that you both wanted it to effect the whole screen, but not effect the whole screen... You can always make your filter be on a DOC that your define bounds for and then place anywhere. Quote Link to comment Share on other sites More sharing options...
user123 Posted April 26, 2014 Author Share Posted April 26, 2014 > what I am trying to do is twist effects that affect the whole game/map/screen> But this applies just one type of filter to the whole screen, I want multiple small instances of a twist filter. Those are pretty contradictory, I'm not sure what you are trying to do. You said that you both wanted it to effect the whole screen, but not effect the whole screen... You can always make your filter be on a DOC that your define bounds for and then place anywhere.Nevermind, I got it working, how do I close this thread? Quote Link to comment Share on other sites More sharing options...
xerver Posted April 27, 2014 Share Posted April 27, 2014 Nevermind, I got it working, how do I close this thread? The best thing would be to post how you solved the problem, then mark that as an "Answer" so others who find your thread can benefit from your work. Quote Link to comment Share on other sites More sharing options...
user123 Posted April 29, 2014 Author Share Posted April 29, 2014 I solved it by applying the twist filter to each individual sprite.In my case, explosions, so they move a bit like waves Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.