playMaker

Author Topic: Code about how an enemy appear to the player.  (Read 809 times)

AlexYap96

  • Playmaker Newbie
  • *
  • Posts: 1
Code about how an enemy appear to the player.
« on: March 07, 2019, 04:19:48 AM »
Hello guys, i am searching for help for my team final year project as students, here i gonna ask in unity code, or unity plugin playmaker, how can the enemy as a ghost appear as invisible and after the ghost near the player , then it will appear in front or near of the player and the the colour of the ghost will pop out , so that the player has chance to escape from the ghost before it kills the player. Hopeful to get help soon, thanks.

Fat Pug Studio

  • Beta Group
  • Hero Member
  • *
  • Posts: 1294
    • Fat Pug Studio
Re: Code about how an enemy appear to the player.
« Reply #1 on: March 07, 2019, 09:02:39 AM »
You can get the distance of the ghost from player and adjust the alpha value of the ghost renderer depending on the distance by interpolating the values.
Available for Playmaker work