Jump to content

Multiple twist effects?


user123
 Share

Recommended Posts

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...