Sprite Effect

Forum Home Forum Home > Construct 2 Development > Bugs > Closed bugs
 Post Reply Post Reply
Author
4,196 Rep
Post Options Post Options   Quote JACLEMGO Quote  Post ReplyReply Direct Link To This Post Topic: Sprite Effect
    Posted: 07 Mar 2012 at 7:04pm
Hi,

I have 2 layers, background and game.

Background has one Image.

On game I have two sprites, another “background” and a sprite, a square block 100x100. What I want to achieve is the following effect:

The sprite should mask out the "front background", where the sprite is located, and display the lower layer, the background.
Is this possible, if so can someone please help me.

PS I have tried all the options in the "Effect" Options.

Regards
Back to Top

Moderator
28,496 Rep
Post Options Post Options   Quote Kyatric Quote  Post ReplyReply Direct Link To This Post Posted: 07 Mar 2012 at 8:09pm
Be sure to set the top layer's property "Force own texture" to yes (like in the "Sprite effect.capx" in the folder c2\examples provided with the install of C2, this should do the trick.
Back to Top
4,196 Rep
Post Options Post Options   Quote JACLEMGO Quote  Post ReplyReply Direct Link To This Post Posted: 07 Mar 2012 at 8:52pm
YESSSSSS!!!!! Thank you some much!!!

For everyone else:
Set the Sprite Effect to: Destination out
The Top Layer as Kyatric pointed out.

Back to Top

Scirra Developer
78,331 Rep
Post Options Post Options   Quote Ashley Quote  Post ReplyReply Direct Link To This Post Posted: 08 Mar 2012 at 3:40pm
Closing as not a bug.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down