[WIP] My FPS Game

Share you game, work in progress project or ideas.
User avatar
Rainsen
New Member
New Member
Posts: 1
Joined: Wed Apr 25, 2018 3:16 am

I'm really impressed by your project, skr2000. How long have you been working on this game so far? Are you planning to release it someday or this just a hobby project of yours?
User avatar
skr2000
Contributor
Contributor
Posts: 169
Joined: Thu Feb 02, 2017 8:23 pm

Rainsen wrote:I'm really impressed by your project, skr2000. How long have you been working on this game so far? Are you planning to release it someday or this just a hobby project of yours?
This was just hobby project but currently I'm planning to release.
User avatar
Oggy
Contributor
Contributor
Posts: 79
Joined: Fri Oct 13, 2017 2:53 am

Can you guide how to do lean peek?
User avatar
chrisb
Contributor
Contributor
Posts: 57
Joined: Sun Apr 05, 2015 9:12 am

Oggy wrote:Can you guide how to do lean peek?
Please please pretty please :)
User avatar
ScoutMaster
Contributor
Contributor
Posts: 13
Joined: Wed Dec 27, 2017 12:39 am

Oggy wrote:Can you guide how to do lean peek?

I dont use mfps anymore but this should get u started with a lean peak..

note, make an empty object and place everything underneath it and add this script

Code: Select all

    public bool canLean = true;
   
    [Range(0, 100)]
    public float leanAmount;
    [Range(0, 100)]
    public float smoothSpeed;
        if (Input.GetKey(KeyCode.Q))
        {
            transform.localRotation = Quaternion.Lerp(transform.localRotation, Quaternion.Euler(new Vector3(0, 0, leanAmount)), Time.deltaTime * smoothSpeed);
        }
        else if(Input.GetKey(KeyCode.E))
        {
            transform.localRotation = Quaternion.Lerp(transform.localRotation, Quaternion.Euler(new Vector3(0, 0, -leanAmount)), Time.deltaTime * smoothSpeed);
        }
        else
        {
            transform.localRotation = Quaternion.Lerp(transform.localRotation, Quaternion.Euler(new Vector3(0, 0, 0)), Time.deltaTime * smoothSpeed);
        }
let me know if u win into any issues:)
Post Reply