How can I do this type of transparency? (Solved)

How can I do this type of transparency?
Zombies%20Ate%20My%20Neighbors%20(U)%20%5Bc%5D%5B!%5D000
I appreciate any help.:sweat_smile:

1 Like

2 easy ways

  1. You can change the opacity of the fence when the collision occurs.
  2. Make the fence as a png with transparency
1 Like

interesting. I will try those methods. It is a window and I don’t want it to disappear. but for other objects it can serve. I’ll try to get it to work. thanks and notice the result. :smile:

Other way is to set two animations with different names (anim1, anim2) for the window, suppose one normal (anim1) other semi transparent (anim2),

At the begining of the scene pause obj_wndow animation

if obj_player is in collision with obj_window
Change obj_window animation to anim2

This event inverted, (it means is not colliding)
if obj_player is in collision with obj_window
Change obj_window animation to anim1

1 Like

I applied to all windows from the start with a value of 100 opacity and it works perfectly. Thanks a lot.