Doorgaan naar hoofdcontent

Blok 4 - Phase 3: Execute Part 2



TURN LIGHTS OFF

To turn all lights off and turn the hotel dark i had to disable all light gameobjects and change the color of my directional light to a darker shade. i did this by making a gameobject list for the lights and turning them off after a few seconds had past.
in my cooldown timer i added the same concept but the other way around.

GHOST ANIMATION

Assets.

first i had to create some assets to animate when the lights turn out. i created some dark assets with light assets. in the dark this creates an effect of a weird shape with
a clearly visable scary mask.

Aniamtion.

for the ghosts I made a couple of animators for a right, front or back animation (this is beacause i wanted to place the ghosts in different rotations. these aniamtions of course had no position so could place them whereever I liked.

next i could put hem in my list in the in spector and place them in my scene!

I also added a Bloom script to my main camera. now i can change the intensity with this simple code:glowFX.intensity = 2.5f;
I made it so that when the lights turn back on that there is a little flash which is meant to illustrate your eyes readjusting

Reacties

Populaire posts van deze blog

Blok 3 - Phase 1: Context Design

- Game Context My game is based on a classic game of hide and seek. the main difference is that it is played behind a computer screen! Gerne  This hide and seek game will be a party game. i am however concidering if it should be played on a differen screen per player or if only the seekers and hiders are sepparated. Core Gameplay & Mechanics The core gameplay is that the same as hide and seek. the hiders get a headstart in the level starting close to the same location as the seeker. then when their time is up the seeker gets a look at the level and tries to find the other players. once found the seeker has to either shoot the players from close range or touch them. knowing the seeker has a gun you could also see the players as cops and robbers, but in more friendly matter. The Core machanics are rather wonky. this is beacause i am trying to work with ragdoll physics that closely resemble "Gang |Beast" or "Human Fall Flat"   All players c...

Blok 3 - Phase 3: Visual Design

- Final Playable Blockout First i made a single hotel room And concluded my asset List for the hotel rooms. i chose to make all  this in magicaVoxel with a 3d pixelart style as enresult

Blok 4 - Phase 3: Execute Part 1

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. 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 tweek...