Login / Registrieren
DE EN FR ES IT CZ
Zurück Nach oben

Scroll Factor on Animations?

  • #1, by louis-durrant 8 years ago Zitieren
    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!
  • #2, by sebastian 8 years ago Zitieren
    can you bind that animation as object default animation in the object properties and see if it works? 
  • #3, by Lebostein 8 years ago Zitieren
    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)
    
  • #4, by Lebostein 8 years ago Zitieren
    But I am not sure if this works correct with parallax, but you can try this.
  • #5, by louis-durrant 8 years ago Zitieren
    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