How do to mask a sprite flying through a hoop?

Get help using Construct 2

Post » Thu Dec 05, 2013 4:07 am

Hi guys, I am trying to make a sprite fly though a hoop, but I have no idea how to effectively mask the hoop. Cause right now the sprite is either behind the hoop or in front of the hoop. I tried the blending options but none work.

I'm sure that there is a simple solution to this. But I just cant think of any solutions. Thanx in advance for the help!
B
3
Posts: 6
Reputation: 187

Post » Thu Dec 05, 2013 4:18 am

The simplest trick is to break your hoop into two parts and layer them appropriately. See the Angry Birds example. The slingshot uses this trick.
ImageImageImage
B
71
S
21
G
231
Posts: 3,688
Reputation: 129,352

Post » Thu Dec 05, 2013 5:10 am

Hi blackhornet, yea i did think of that, but I forgot to mention that the hoops will be randomly generated and will be moving across the screen. So I am not very sure if that is viable, cause it might cause some empty space to appear while it is moving?
B
3
Posts: 6
Reputation: 187

Post » Thu Dec 05, 2013 5:29 am

Just make sure there is a pixel or two of overlap, and that should be fine.
ImageImageImage
B
71
S
21
G
231
Posts: 3,688
Reputation: 129,352


Return to How do I....?

Who is online

Users browsing this forum: ChoosyZerk, lukewasthefish and 16 guests