Sprite Effect

Bugs will be moved here once resolved.

Post » Wed Mar 07, 2012 7:04 pm

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
B
42
S
9
G
7
Posts: 58
Reputation: 7,465

Post » Wed Mar 07, 2012 8:09 pm

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.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
258
S
88
G
48
Posts: 7,082
Reputation: 62,728

Post » Wed Mar 07, 2012 8:52 pm

YESSSSSS!!!!! Thank you some much!!!

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

B
42
S
9
G
7
Posts: 58
Reputation: 7,465

Post » Thu Mar 08, 2012 3:40 pm

Closing as not a bug.
Scirra Founder
B
366
S
217
G
82
Posts: 23,245
Reputation: 183,488


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 0 guests