Class Customization

Add-Ons for MFPS.
User avatar
Lovatto
Admin
Admin
Posts: 1549
Joined: Sun Dec 07, 2014 3:18 pm
Contact:

Sat Aug 04, 2018 8:35 pm

Lastson82 wrote:I am using mfps 2.0. I have also purchased the mobile controller which the joystick does not move freely. I would like to use all of your assets in my game bit am having great difficulty with them. Please help so I can get this working. Thanks.
Can you explain what you mean with move freely?
it is stuck or?
User avatar
Lastson82
Member
Member
Posts: 11
Joined: Thu Aug 02, 2018 5:52 am

Mon Aug 06, 2018 2:24 am

It locks in which ever direction that you initially press. So if you press up to move forward, then it will stay in that direction until you release and then you have to press left in order to move left, rather than being able to move forward and then roll into moving left with out releasing the joystick.
User avatar
sandy
New Member
New Member
Posts: 1
Joined: Wed Dec 05, 2018 6:12 pm

Tue Dec 11, 2018 8:40 pm

Lastson82 wrote:It locks in which ever direction that you initially press. So if you press up to move forward, then it will stay in that direction until you release and then you have to press left in order to move left, rather than being able to move forward and then roll into moving left with out releasing the joystick.

Same issue the joystick is not fluid. It needs to be freely moved in any direction. Right now you will have to press on the circle to move.
User avatar
Lovatto
Admin
Admin
Posts: 1549
Joined: Sun Dec 07, 2014 3:18 pm
Contact:

Tue Dec 11, 2018 8:44 pm

Which version are you using?
I just release a update together with the new MFPS update with the joystick fixed.
but it require the new MFPS version also, if you are using version 1.2 of MFPS you need modify bl_UtilityHelper.cs:
change these functions:

Code: Select all

   public static void LockCursor(bool mLock)
    {
#if UNITY_5 || UNITY_5_3_OR_NEWER
        if (mLock == true)
        {
            Cursor.visible = false;
            Cursor.lockState = CursorLockMode.Locked;
        }
        else
        {
            Cursor.visible = true;
            Cursor.lockState = CursorLockMode.None;
        }
#else
        Screen.lockCursor = mLock;
#endif
    }
    /// <summary>
    /// 
    /// </summary>
    public static bool GetCursorState
    {
        get
        {
#if UNITY_5 || UNITY_5_3_OR_NEWER
            if (Cursor.visible && Cursor.lockState != CursorLockMode.Locked && !isMobile)
            {
                return false;
            }
            else
            {
                return true;
            }
#else
            return Screen.lockCursor;
#endif
        }
    }
for:

Code: Select all

 public static void LockCursor(bool mLock)
    {
        if (mLock == true)
        {
            CursorLockMode cm = isMobile ? CursorLockMode.Confined : CursorLockMode.Locked;
            Cursor.visible = false;
            Cursor.lockState = cm;
        }
        else
        {
            Cursor.visible = true;
            Cursor.lockState = CursorLockMode.None;
        }
    }

    /// <summary>
    /// 
    /// </summary>
    public static bool GetCursorState
    {
        get
        {
            CursorLockMode cm = isMobile ? CursorLockMode.Confined : CursorLockMode.Locked;
            if ((Cursor.visible && Cursor.lockState != cm))
            {
                return false;
            }
            else
            {
                return true;
            }
        }
    }
User avatar
haskoman
Contributor
Contributor
Posts: 85
Joined: Wed Aug 22, 2018 1:57 pm

Wed Dec 12, 2018 9:15 am

i can not dowlaod new update for addon is never finish dowload ;( you can check please
User avatar
jony12
Contributor
Contributor
Posts: 223
Joined: Mon Sep 24, 2018 12:46 pm

Wed Dec 12, 2018 9:23 am

I download without problems.
You can try out another web browser.
User avatar
haskoman
Contributor
Contributor
Posts: 85
Joined: Wed Aug 22, 2018 1:57 pm

Wed Dec 12, 2018 9:50 am

is good
User avatar
slthompson
Contributor
Contributor
Posts: 17
Joined: Mon Jul 01, 2019 7:11 am

Thu Jul 04, 2019 8:48 am

I have an error, see pic (MFPS 2.0/1.5, Class Custm 1.4, Uloging Pro 1.6, Unity 2017.4.25f1)

Image

Thanks-Sean
User avatar
Lovatto
Admin
Admin
Posts: 1549
Joined: Sun Dec 07, 2014 3:18 pm
Contact:

Thu Jul 04, 2019 1:00 pm

Please be sure to enable the Shop addon.
User avatar
slthompson
Contributor
Contributor
Posts: 17
Joined: Mon Jul 01, 2019 7:11 am

Thu Jul 04, 2019 2:07 pm

It imported correctly, thank you!
Post Reply