The Daily Click ::. Forums ::. Klik Coding Help ::. Cut out with actives (Screen transition)
 

Post Reply  Post Oekaki 
 

Posted By Message

Solgryn

Solgryn dot org

Registered
  20/12/2008
Points
  12572

GOTW Winner!VIP MemberWii OwnerIt's-a me, Mario!The Cake is a LieGOTM 2ND PLACE! - APRIL 2009GOTM 2ND PLACE - JUNE 2009PS3 OwnerKlikCast #15 Compo Winner!LOL Sign
You've Been Circy'd!GOTM WINNER - JANUARY 2010I am an April FoolGOTW MARCH 2010 WINNER!Santa Hat
21st November, 2009 at 00:03:14 -

Hey, i was wondering if you could cut out an active with another.

For example, I want a screen transition.
I have 2 actives. One is a circle, the other is a black square.
The circle cuts out the black square while the circle gets smaller and smaller and eventually gets so small that the whole screen is black.

If you get what I mean :/

Thanks


 
www.Solgryn.org

Image

nim



Registered
  17/05/2002
Points
  7229
21st November, 2009 at 04:25:43 -

Since MMF treats RGB(0,0,0) as transparent rather than black, you can do this with the Overlay Redux object.

Always
-- Clear Overlay with RGB(1,1,1)
-- Draw Ellipse with RGB(0,0,0)
-- Update Display

You can add values to the drawing of the ellipse to make it shrink or appear in a different position.

http://lowflyingcow.googlepages.com/overlaycutout.mfa

Hope this helps

 
//

UrbanMonk

BRING BACK MITCH

Registered
  07/07/2008
Points
  50152

Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 32 Winner!Picture Me This Round 42 Winner!Picture Me This Round 44 Winner!Picture Me This Round 53 Winner!
21st November, 2009 at 04:33:36 -

There really does need to be an erase ink effect that erases the objects on its layer.

That would be nifty for sure! Yep!

 
n/a

nim



Registered
  17/05/2002
Points
  7229
21st November, 2009 at 04:35:26 -


Originally Posted by Solgryn
Hey, i was wondering if you could cut out an active with another.



I don't think there's a way to do it with actives, if for some reason you need to do it that way. Hopefully someone here knows a sneaky way of using XOR, OR or AND to make it happen. I've no idea what those do apart from make everything under the object look funny. I think it might be possible if you can combine ink effects to make both objects RGB(0,0,0) when they overlap.

Edited by nim

 
//

Solgryn

Solgryn dot org

Registered
  20/12/2008
Points
  12572

GOTW Winner!VIP MemberWii OwnerIt's-a me, Mario!The Cake is a LieGOTM 2ND PLACE! - APRIL 2009GOTM 2ND PLACE - JUNE 2009PS3 OwnerKlikCast #15 Compo Winner!LOL Sign
You've Been Circy'd!GOTM WINNER - JANUARY 2010I am an April FoolGOTW MARCH 2010 WINNER!Santa Hat
21st November, 2009 at 09:44:34 -


Originally Posted by nim
Since MMF treats RGB(0,0,0) as transparent rather than black, you can do this with the Overlay Redux object.

Always
-- Clear Overlay with RGB(1,1,1)
-- Draw Ellipse with RGB(0,0,0)
-- Update Display

You can add values to the drawing of the ellipse to make it shrink or appear in a different position.

http://lowflyingcow.googlepages.com/overlaycutout.mfa

Hope this helps



Yea thanks this works =D.

But I have multiple layers and it doesn't cooperate with layers, I can only out it in the lowest layer and then it only covers the background :/

Edited by Solgryn

 
www.Solgryn.org

Image

UrbanMonk

BRING BACK MITCH

Registered
  07/07/2008
Points
  50152

Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 32 Winner!Picture Me This Round 42 Winner!Picture Me This Round 44 Winner!Picture Me This Round 53 Winner!
21st November, 2009 at 21:22:29 -

Try to position it at (1,1) instead of (0,0) I heard it doesn't like that position for some reason.

If that doesn't work then try changing it's layer at runtime.
Also I think you'll need to use the active overlay redux for what you want.

 
n/a

Solgryn

Solgryn dot org

Registered
  20/12/2008
Points
  12572

GOTW Winner!VIP MemberWii OwnerIt's-a me, Mario!The Cake is a LieGOTM 2ND PLACE! - APRIL 2009GOTM 2ND PLACE - JUNE 2009PS3 OwnerKlikCast #15 Compo Winner!LOL Sign
You've Been Circy'd!GOTM WINNER - JANUARY 2010I am an April FoolGOTW MARCH 2010 WINNER!Santa Hat
21st November, 2009 at 22:28:47 -


Originally Posted by UrbanMonk
Try to position it at (1,1) instead of (0,0) I heard it doesn't like that position for some reason.

If that doesn't work then try changing it's layer at runtime.
Also I think you'll need to use the active overlay redux for what you want.



I tried using active overlay and it worked =D, thanks a million

 
www.Solgryn.org

Image

UrbanMonk

BRING BACK MITCH

Registered
  07/07/2008
Points
  50152

Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 32 Winner!Picture Me This Round 42 Winner!Picture Me This Round 44 Winner!Picture Me This Round 53 Winner!
21st November, 2009 at 22:34:52 -



 
n/a
   

Post Reply



 



Advertisement

Worth A Click