DETECT AND START ANIMATION
First i created a script that detects when the collider its attached to colides with a collider with a specific tag: "Switch" it then changes parameters to switch aniamtions from idle to active.
to prevent this from happening over and over again in a quick maner i added a cooldown so the players cant activatie te routine until the lights are back on
secondly i created a fusbox with a working door and switch with corisponding joints to make them work.
but before i made the animations that get triggered when the switch is pullen if am first goin to focus on a sparks particle effect whten the lever is pulled.
i made a new shader to eddit in shader Forge. i created a texture asset an connected it to a texture 2D and to emmision with Blend mode set to active
I then created a sprite for a particle and created a particle effect after.
with a bit of tweeking to the Shader force i started tweeking the particle effect to my needs. it of course needs to look like sparks!
with this done i made a smoke effect in photoshop that wil act as an explosion begore the sparks start.
PARTICLE SPARK EFFECT
but before i made the animations that get triggered when the switch is pullen if am first goin to focus on a sparks particle effect whten the lever is pulled.
i made a new shader to eddit in shader Forge. i created a texture asset an connected it to a texture 2D and to emmision with Blend mode set to active
I then created a sprite for a particle and created a particle effect after.
with a bit of tweeking to the Shader force i started tweeking the particle effect to my needs. it of course needs to look like sparks!
Smoke explosion.
with this done i made a smoke effect in photoshop that wil act as an explosion begore the sparks start.
Reacties
Een reactie posten