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 4: Production

I worked a lot on my model which obviously took up the most time in my progress. this is my build finnished but it didnt fit in the render. you get the picture And i also worked a bit on my game design: blankets/kushens that arent static glass that breaks mirrors that work lights that go on and of (+ a power switch for the whole building) rope that works when you press start there will be a different scene each round all these scenes will alter slightly: objects are in different locations and there will be different themes. themes: random each round: different filters, guns, costumes per player: 70's pop, cops and robbers, enz. the seeker will always need to find a fixed amound of players.. lets say 5. but what if there are not enaugh players to fill the spots? well the seeker will then have to find objects in their place. so when there are 4 players. one will be the seeker and 3 will be hiders. the seeker then has to find 3 players and 2 items (maybe a milkb

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

Blok 4 - Phase 1: Analyse

TECHNICAL ART: L evel Assets I have lots and lots of low poly prefabs made which make up the map and the objects inside the characters are made of standerd unity shapes. I should sepparate these static enviroments and bake their shadows with shadowmasks. I made my level assets like walls and ground static and then baked my shadows into them with object maps. this should stop my game from being to laggy. the movable object are still in realtime shadows L ightning and shaders I have a FlatLitShader aplied with no fancy lighting technuiqes or anything. all i have is a couple of standerd spotlights and a directional light. I Should play with some lighting, quality and player options and also apply post processing. Here ar a couple of topics i worked on. Topics: Color Spaces I chose to render my color space in linear. it came acrros as the easiest way to make you game look bether and i did some resrach on how it works and it actualy aplies really we