Author Topic: Issue with animate2 module and delay  (Read 3090 times)

markc74

  • Full Member
  • ***
  • Posts: 32
    • View Profile
Issue with animate2 module and delay
« on: December 12, 2019, 01:19:50 AM »
Hi guys - it's been a while since I've messed around with Attract Mode but got the bug again and am working on a new layout for a micro build I've nearly finished.

Anyway - What I'm *trying* to do is slowly scroll a menu bar off the top of the screen after 3 seconds. This is the line of code I am using:

PropertyAnimation(menu).key("y").from(0).to(-80).delay("3s").duration("5s").easing("ease-out-circle").play();

I don't actually want it to take 5 seconds to scroll out - I'm just using that to demonstrate the problem I am having. Basically the bar stays exactly where it should for 3 seconds, but then immediately moves near to the top of the screen and then slowly scrolls the rest away over 2 seconds. It's as if the animation is starting at the same time as the delay (but not visible) and then jumps to the 3 second point of the animation and completes it.

Any ideas? Am I being an idiot?