Using a flashlight will be a vital mechanic in the game as some areas of the facility are going to be dark with no working light sources. for the mechanic i used kismet and set up a 3rd person camera and positioned it just to the side of the player like dead space and resident evil. with that im place i set up an attachment actor for a spotlight to the camera which than allowed the flashlight to move with the view. and finally i set a toggle action for the spotlight, so the player can turn it on and off at will.
i changed the spotlights settings so the cone angle is thinner and has some fall off also i added a smaller light aaround the player which is very dim and will turn on with the flashlight, this is to create the effect of light bounce, even though the light is pointing forward there will still be dim light to the sides of nearby walls and objects from the bouncing light rays. though later in development there may be a way of doing this effect without the point light attached to the player.
The only stage thats next from this is to create a custom weapon class, which will be our own modelled flashlight which we can them attach the spotlight to in the bone socket of the player so the flashlight will move with the reticule of the player not just with the camera view like it does here (left and right, not up and down)
No comments:
Post a Comment