Reply To: Rotate as long as key is pressed

Forums 💬 NodeCanvas 🗨️ General Discussion Rotate as long as key is pressed Reply To: Rotate as long as key is pressed

#14124
chocolacode
Participant

    Hello,

    I tried a similar request some time ago
    This is what worked for me…

    You can try with the parallel
    Composite. Create two branches down
    Assign a decorator (conditional) to
    Each of this branches, add a condition
    Task for keyboard input so you assign
    The keys you like
    Then create a branch down from
    Decorator 1 and create a task for
    movement
    Then create a branch down from
    Decorator 2 and create a task for
    Rotation

    Cheers!