In this lesson, I will show you how to code and create a vanishing ghost platform. which are platforms that disappear a few seconds after a player object touches it. Ghost platforms are a very popular game mechanic that can be found in almost every platformer.
To create this game mechanic we will use a 3D cube, a transparent material, an animation, and a C# script. The script will use the OnCollisionEnter function to trigger the animation that will fade the platform.
Website: https://www.infogamerhub.com
Become a Supporter: https://www.infogamerhub.com/membersh...
/ discord
SUBSCRIBE for regular Video Game making videos:
/ @infogamer2145
Features and Functions
3D Models
transparent/fade material
Animation and animator
Rigidbody and box collider
C# script
String
Float
Bool
GetComponent
SetFloat
transform
tag
SetBool
OnCollisionEnter
StartCoroutine
IEnumerator
WaitForSeconds