PDA

View Full Version : qml animation



vinayaka
12th September 2011, 09:50
Behavior on y {
SequentialAnimation {
SmoothedAnimation{ velocity: 800 }
// RotationAnimation{properties: "angle"; to: 100}
}
}


this is code where a ball falls at mouseclick.
i want to rotate and bounce the ball when it places in a grid . I used the above code but it does not work for me. Can any one help me in this?

raja26
16th September 2011, 09:48
Try
NumberAnimation on rotation{to: 360; duration:200}. If you are trying to create a game, then try QML version of Box2D. It is available in GIT.

vinayaka
21st September 2011, 06:44
I have a Play button .I would like to do a bezier curve animation to the button.
IS this code enough to do the animation.

Path {
startX: 20; startY: 0
PathCubic {
x: 180; y: 0
control1X: -10; control1Y: 90
control2X: 210; control2Y: 90
}
}