Class Customization

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

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?
How to find your Invoice Number: Here
How to find your Order Number: Here
User avatar
Lastson82
Member
Member
Posts: 12
Joined: Thu Aug 02, 2018 5:52 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

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: 1834
Joined: Sun Dec 07, 2014 3:18 pm
Contact:

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;
            }
        }
    }
How to find your Invoice Number: Here
How to find your Order Number: Here
User avatar
haskoman
Contributor
Contributor
Posts: 94
Joined: Wed Aug 22, 2018 1:57 pm

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

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

is good
User avatar
slthompson
Contributor
Contributor
Posts: 21
Joined: Mon Jul 01, 2019 7:11 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: 1834
Joined: Sun Dec 07, 2014 3:18 pm
Contact:

Please be sure to enable the Shop addon.
How to find your Invoice Number: Here
How to find your Order Number: Here
User avatar
slthompson
Contributor
Contributor
Posts: 21
Joined: Mon Jul 01, 2019 7:11 am

It imported correctly, thank you!
Post Reply