Search Unity

Question Procedurally animating on 2's with a script

Discussion in 'Animation' started by UpgradeFour, Jan 20, 2024.

  1. UpgradeFour

    UpgradeFour

    Joined:
    Jan 26, 2016
    Posts:
    4
    Hi

    I'm working on a project where I want to utilise procedural animation - however I'm looking to try to recreate a 2D animated appearance by having things animate on 2's and 3's (eg holding one pose for 2 or 3 frames across 24 frames). I'm guessing this isn't an easy feat since I haven't really figured out how to even start tackling this since a) obvs games have a variable framerate so to achieve a consistent 24-frames animated on 2's appearance would need to scale/change based on the fps and b) since the animations are procedural and in some instances physics based have them only update every other frame (or the relative equivalent to whatever framerate the project is running at). I've seen a suggestion a while back to clamp the whole project to render at 24 frames buy I'd prefer to be able to adjust it with a script and have it be specific so I can have the camera and some other objects move at higher frames.

    Any suggestions on ways to potentially tackle this?
     
  2. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,789