Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+1)

Cool game visual with simple shapes. Cool camera effect! Can you share the mechanism of the camera?

Thx for your feedback!

Wait a bit and I'll paste the script here

(1 edit) (+1)
//You need a post processing stack for this script
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Rendering.PostProcessing;
public class PostProcessController : MonoBehaviour
{
    //From other script change a neededLensDist;
    
    [SerializeField] PostProcessVolume volume; //Variable of postprocessing volume
    private LensDistortion lens = null; //Variable of lens distortion (module in post processing profile)
    public float neededLensDist = 0; //Needed value for lens distortion
    private void Awake()
    {
        volume.profile.TryGetSettings(out lens); //Get a lensDistortion variable for changing it
    }
    void Update()
    {
        //Smooth changing lens distortion
        lens.intensity.value = Mathf.Lerp(lens.intensity.value, neededLensDist, 0.025f);
    }
}
(+1)

i just take a variable of lensDistortion and smoothly changing it (read about Mathf.Lerp())

(+1)

Wow, thank you very much for your selfless sharing, cool!

Making games is my hobby, not my job. If someone comes in handy my help, I will be very happy. (Especially for people from other countries, I just don’t know much English, and if they understand me correctly, it will be even better)

(+1)

Haha ~ My English is not very good too,  I can fully understand your expression. Making games is also a hobby of mine,  I am Chinese.