3D Action RPG character Ellen (moving via a character controller)
If you create an Item with Schematic (setting in Block player Control) and Ellen touch it,
The character's Speed ​​will fluctuate.
(Suddenly starts running and stops repeatedly)

How can I set Speed to 0?
  • Might be some physics involved - is the item that's created having some collider that could push the player away?
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • Item is 3D Cube : Box Collider(Is trigger)+Trigger Machine (Trigger Enter)& Schematic Asset
    Schematic : Settings(BlockPlayerControl)+Wait(5sec)


    In the thread "How does "Block Player Control" Effect the Movement Script?"
    You probably need to move it with a Vector3.zero direction to cancel out the previous movement/speed when it's disabled.
    There is a description, but I don't know how to do it specifically with Schematic.
  • Are you using the built-in controls as they're used in the 3D Action RPG tutorial or a custom setup?
    bugger50 said: You probably need to move it with a Vector3.zero direction to cancel out the previous movement/speed when it's disabled.
    That's meant for using custom controls - the built-in controls handle this automatically.
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • I am using the built-in controls as they're used in the 3D Action RPG tutorial

    >the built-in controls handle this automatically

    I am making it work by changing the character(by built-in control), but the action changes depending on the character.
    (I tried about 5 characters, but only Ellen stopped correctly.)
    Is there a Schematic way to manually clear the movement of the Chractor Controller?
  • edited August 2
    Not 100 % sure, but you can try to use a Change Position node and move to the same position as the game object already has.

    Or use a Call Function node to directly call the CharacterController component's Move function with a 0 Vector3 value
    Post edited by gamingislove on
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • I tried both, but it didn't work.
    Even if I disable ChractorContoler, Speed(Variable) ​may fluctuate.

    The same behavior occurs even if you manually disable the Button Controller(Component).
    There seems to be a problem with the Button Controller settings.
  • When blocking PlayerControl

    BlockPlayerControl= Disabling Button Controller (Component) ⇒Speed behavior becomes strange
    There was no problem when I manually set the Vertical Axis to None and the Horizontal Axis to None of Button Controller (Component) .

    By disabling the Button Controller(Component)
    It is assumed that the Move Type (=Animator Root Motion) setting change to incorrect.


    How to set Vertical Axis to None and Horizontal Axis to None of Button Controller (Component)
    ①Please tell me how to do it with Schmatic.
    ②Please tell me how to do it with C#Script. 
     
  • How to set Vertical Axis to [5:Vetical Move] and Horizontal Axis to [4:Horizonal Move] of Button Controller (Component)
    ①Please tell me how to do it with Schmatic.
    ②Please tell me how to do it with C#Script.
  • This most likely is a setup issue on your combatant prefabs or their settings. If you can show me the setup of them (e.g. how are they moved, which components are used, what's the player control setup, etc.) I might be able to see what's causing it.

    You can't change the settings of the player control via schematics.
    You can change it via script, e.g. to select none:
    component.settings.horizontalAxis.SetAsset(null);
    component.settings.verticalAxis.SetAsset(null);
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • How do you get component the Button Controller (Component) of the player?
  • Like any other component in Unity:
    ButtonPlayerController component = gameObject.GetComponent<ButtonPlayerController>();

    It uses the namespace GamingIsLove.ORKFramework.Components.
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • It worked fine
    but I don't know how to put it back

    How to set Vertical Axis to [5:Vetical Move] and Horizontal Axis to [4:Horizonal Move] of Button Controller (Component)
    Please tell me how to do it with C#Script.
  • Try this:
    component.settings.horizontalAxis.SetAsset(Maki.InputKeys.GetAsset(4));
    component.settings.verticalAxis.SetAsset(Maki.InputKeys.GetAsset(5));
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • It worked fine Thank you very much (Closed)

    > If you can show me the setup of them
    I haven't changed the settings from Ellen's
Sign In or Register to comment.