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
41
S
8
G
6
Posts: 58
Reputation: 6,820

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
247
S
85
G
40
Posts: 7,000
Reputation: 57,795

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
41
S
8
G
6
Posts: 58
Reputation: 6,820

Post » Thu Mar 08, 2012 3:40 pm

Closing as not a bug.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 1 guest