playMaker

Author Topic: Wall hiding: Hoping someone can please help me...  (Read 373 times)

El_Toro

  • Playmaker Newbie
  • *
  • Posts: 7
    • View Profile
Wall hiding: Hoping someone can please help me...
« on: April 28, 2017, 05:39:38 PM »
Working on my top-down game, and I'm trying to fade walls as the player moves
behind them. What the guys in this video have down is perfect, however I can't wrap my head around their instructions. Can anyone please put it in simpler terms for me. I have both Playmaker and Dotween like they recommended. Just can't figure it out for some reason.

Here is the video link:
https://www.youtube.com/watch?v=qSyPIFq5PYE&list=PLI0nz9KP0Bz0l1pb3C0MB2wgUcQN-MtX_

Here is their instructions:
http://bigbrotherzgames.tumblr.com/post/157364000589/fade-walls-in-and-out-with-unity-playmaker

Any help would be great! I've been trying to figure it out for a few days now.

Robert
« Last Edit: June 05, 2017, 01:54:47 AM by jeanfabre »

El_Toro

  • Playmaker Newbie
  • *
  • Posts: 7
    • View Profile
Re: Hoping someone can please help me...
« Reply #1 on: April 28, 2017, 06:59:44 PM »
Wrong section. Sorry.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12342
  • Official Playmaker Support
    • View Profile
Re: Hoping someone can please help me...
« Reply #2 on: May 03, 2017, 10:46:55 PM »
Hi,

 Please bump me end of next week, I'll have a look, it seems something that could make it as a sample on the Ecosystem for sure.

 Bye,

 Jean

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12342
  • Official Playmaker Support
    • View Profile
Re: Hoping someone can please help me...
« Reply #3 on: June 05, 2017, 01:54:21 AM »
Hi,

 sorry for the delay :)

 here we go, please find attached a sample showing a very easy solution for checking when an object or a wall is in the way.

simply use a trigger that follows the player and look at the camera, then you can catch anything getting in the way and decide what to do with it, in this case hiding, but it could be something else. with this technic you don't need any complex raycasting or setup.




Let me know if this is suitable for you, I did not implemented dotween, you just do switch from changing color to tweening.

Let me know if you have questions :)

 Bye,

 Jean