https://kotlinlang.org logo
#korge
Title
# korge
p

Pablo Caviglia

12/28/2020, 3:13 PM
and another question related to animations:
Copy code
scene.launchImmediately {

    animate(completeOnCancel = false) {
        sequence(looped = true) {
            parallel {
                circleOuter.moveToWithSpeed(width - 100, 0.0)
                circleInner.moveToWithSpeed(width - 100, 0.0)
            }
            parallel {
                circleOuter.moveTo(width - 100, height - 100)
                circleInner.moveTo(width - 100, height - 100)
            }
        }
    }
}
even after setting looped=true I'm not getting an animated loop, just one animation and then it gets finished
auto answered, was using the moveTo 'normal' function instead of Animation one
d

Deactivated User

12/28/2020, 4:52 PM
I think there is some kind of bug with the animate, because there are a couple of samples doing strange things since 2.0 I guess. I have to check
3 Views