Help with movement.

FlowCanvas Forums Support Help with movement.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2283
    rickbunny
    Participant

    Hi.

    This is my first time using a visual scripting tool and as i’m more used to write the scripts, i need some help setting up a simple top-down rigidbody movement with wasd and also rotating the player to the mouse. I would appreciate the steps to do it or some screenshots.

    Thanks in advance!

    #2285
    DarkNBlood
    Participant

    Hi,

    You should try to create your flow and discover flowcanvas by the way. Then if you have problems with your flow, you can post screenshots here and we will be happy to help you πŸ˜‰

    Trying is best solution to learn flowcanvas πŸ˜‰

    If you can make it with scripts, just try to reproduce in flowcanvas, it’s very similar.

    #2287
    rickbunny
    Participant

    Hi, You should try to create your flow and discover flowcanvas by the way. Then if you have problems with your flow, you can post screenshots here and we will be happy to help you Trying is best solution to learn flowcanvas If you can make it with scripts, just try to reproduce in flowcanvas, it’s very similar.

    Thanks for the response. I managed to make the character walk, but when i rotate the camera, the wasd controls inverses. I tried using the TransformDirection node but it messed the movement as i don’t know exactly where to place it. Could anyone replicate the inverse movement and explain me how to fix it?

    I also would like someone to help on how to rotate the player to the mouse using raycast, i tried replicating it from code but connecting the raycast nodes really confuses me.

    Here is a screenshot of the movement graph:

     

    Attachments:
    You must be logged in to view attached files.
    #2290
    Gavalakis
    Keymaster

    Hello,

     

    I have just tried this and it seems to work as expected. The camera rotation should by no means affect the Input Axis.
    Notice also, that you can use the “Per Second” node to multiply a value by Delta Time and a Multiplier (usually speed), in one go.

    Move-1

    Join us on Discord: https://discord.gg/97q2Rjh

    Attachments:
    You must be logged in to view attached files.
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.