Scroll Factor on Animations?

  • #1, by louis-durrantMonday, 05. February 2018, 11:36 6 years ago
    Is this possible?

    I've animated a windmill that would look pretty slick if it was moving in the background. Would be great to have it paralax with the rest of the scene.

    Using the sliders in effects doesn't affect animation frames, and I haven't been able to find another solution online.

    Cheers!

    Newbie

    12 Posts


  • #2, by sebastianMonday, 05. February 2018, 12:02 6 years ago
    can you bind that animation as object default animation in the object properties and see if it works? 

    Thread Captain

    2346 Posts

  • #3, by LebosteinMonday, 05. February 2018, 12:43 6 years ago
    You can create a simple room object with a single image of the windmill wings and rotate the object endless with a simple easing call:
    https://www.visionaire-studio.net/forum/thread/cool-image-ef...

    Add this snippet to your scene and call it while enter the scene. So the room object with name "wings" starts rotating endless about a specific point (at the moment 1280, 410 - set it to the wing center) with a rotating speed of 1 turn in 3 seconds (3000 ms):
    local objectID = game.CurrentScene.Objects["wings"]
    objectID.RotationCenter = {x = 1280, y = 410}
    objectID:to(3000, {Rotation = math.rad(360)}, easeLinearInOut, true)
    

    Key Killer

    621 Posts

  • #4, by LebosteinMonday, 05. February 2018, 13:00 6 years ago
    But I am not sure if this works correct with parallax, but you can try this.

    Key Killer

    621 Posts

  • #5, by louis-durrantMonday, 05. February 2018, 13:59 6 years ago
    can you bind that animation as object default animation in the object properties and see if it works? 
    This actually worked just fine - can't believe I never saw this option!

    Thank you both smile

    Newbie

    12 Posts