Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Resolved Very new, need some help with Update and Inputs

Discussion in 'Visual Scripting' started by jakieb, Feb 20, 2021.

  1. jakieb

    jakieb

    Joined:
    Nov 11, 2013
    Posts:
    11
    Hi everyone,

    I am wondering if I should and how I would make it so that I don't need four updates running for my input. Attached is a pic that shows my visual script for moving my character one space up on my grid. Do I have to now add three more updates with similar scripts to move left, right and down or can I attach those script flows to the same update?

    Thanks!
     

    Attached Files:

  2. Haneferd

    Haneferd

    Joined:
    Feb 3, 2018
    Posts:
    36
    You can handle movement in a lot of ways.

    For your question of using update. You can use Sequence Steps, and do the logic in a sequence:
    upload_2021-2-20_22-13-40.png


    You can also look in my former answer-post here, which a detailed explanation of different movement techniques:

    https://forum.unity.com/threads/i-cant-move-rigidbody.1059182/
     
  3. jakieb

    jakieb

    Joined:
    Nov 11, 2013
    Posts:
    11
    Thank you! that's perfect!