Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: AlexYap96 on March 07, 2019, 04:19:48 AM

Title: Code about how an enemy appear to the player.
Post by: AlexYap96 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.
Title: Re: Code about how an enemy appear to the player.
Post by: Fat Pug Studio 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.