Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question How do I make a non-linear animation?

Discussion in 'Animation' started by GameDev_A, Nov 29, 2023.

  1. GameDev_A

    GameDev_A

    Joined:
    Sep 5, 2022
    Posts:
    43
    Hi,
    I'm making a 2d minigame that consists of arriving on a dot, watching a video and then answering a short quiz, if completed you advance to another dot.
    The movement of the character is automatic, and not linear so for example it goes straight then obliquely, however I attach the map to give you an idea of the movement, and I was advised to use DOTWeen or LeanTween, but I don't know how to use them, do you have any advice?
     

    Attached Files:

  2. tsukimi

    tsukimi

    Joined:
    Dec 10, 2014
    Posts:
    76
    I'm not familiar with DoTween, but Splines is also a good choice, which is an official package from Unity.
    By Splines, you can create bezier paths, then let your gameobject move along the path. Here's the tutorial from Spline: Animate a GameObject along a spline
    (You can install it through package manager)
     
  3. GameDev_A

    GameDev_A

    Joined:
    Sep 5, 2022
    Posts:
    43
    Ok thanks, now I'll try with that