Scroll Factor on Animations?

  • #1, by louis-durrantMonday, 05. February, 11:36 9 months 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, 12:02 9 months ago
    can you bind that animation as object default animation in the object properties and see if it works? 

    Thread Captain

    2230 Posts

  • #3, by LebosteinMonday, 05. February, 12:43 9 months 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)
    1
    2
    3
    4

    Key Killer

    576 Posts

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

    Key Killer

    576 Posts

  • #5, by louis-durrantMonday, 05. February, 13:59 9 months 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

Write post