How do I Make the NPC part transparent

Get help using Construct 2

Post » Sat Mar 05, 2016 2:46 pm

Hi,
I'm a fresh man for study C2.

I try to make a 2D RPG game and have a small problem.

there is a NPC and building on the map. When the NPC is overlap with the building, I want to make the NPC overlap part to transparent(Not all the NPC body transparent, only the overlap part).

Thanks.
B
10
S
2
Posts: 13
Reputation: 576

Post » Sat Mar 05, 2016 3:00 pm

Welcome to C2!
You can simply change the Z order. Set buildings to top or the NPC to bottom. If you still want to see a bit of the NPC, you can use Blend Effects.
B
7
S
2
G
1
Posts: 42
Reputation: 1,144

Post » Sat Mar 05, 2016 3:01 pm

Not sure that is possible.
What you can do is set your npc on layer (0) and your building on layer (1). then when part of your npc is overlaping the building it will be behind the building since it is on the lower layer...
B
9
S
3
Posts: 56
Reputation: 801

Post » Sat Mar 05, 2016 3:09 pm

trquangss wrote:Welcome to C2!
You can simply change the Z order. Set buildings to top or the NPC to bottom. If you still want to see a bit of the NPC, you can use Blend Effects.


Dear, thanks for your quick reply.

I know the z order. which blend effect can support on this? Yes, I want to see a bit of the NPC when they are overlap.
B
10
S
2
Posts: 13
Reputation: 576

Post » Sat Mar 05, 2016 3:23 pm

Workaround would be to make a copy of the building sprite on a layer above the character (or with top z order) and set that sprites opacity to say 66 percent. That way you'll see the character underneath it but not with full opacity.
B
32
S
9
G
4
Posts: 132
Reputation: 4,348

Post » Thu Mar 10, 2016 2:20 am

trquangss wrote:Welcome to C2!
You can simply change the Z order. Set buildings to top or the NPC to bottom. If you still want to see a bit of the NPC, you can use Blend Effects.


which blend effects can support this?
B
10
S
2
Posts: 13
Reputation: 576

Post » Thu Mar 10, 2016 3:03 am

Waltuo wrote:Workaround would be to make a copy of the building sprite on a layer above the character (or with top z order) and set that sprites opacity to say 66 percent. That way you'll see the character underneath it but not with full opacity.


Good idea! I will try it.
B
10
S
2
Posts: 13
Reputation: 576


Return to How do I....?

Who is online

Users browsing this forum: luckyrawatlucky, nahima, Yahoo [Bot] and 8 guests