0
인터넷에 연결해야하는 작은 프로그램을 작성하려고합니다. 이 작업을하는 동안 앱은 Flash Professional에서 만든 애니메이션을 스프라이트 시트로 내 보내야합니다. 나는 QML에서 AnimatedSprite 유형을 사용QML로 스프라이트 애니메이션 만들기
import QtQuick 2.2
import QtQuick.Controls 1.1
ApplicationWindow {
visible: true
width: 640
height: 480
flags: Qt.FramelessWindowHint
| Qt.Window
color:"#00000000"
title:"Presenter Remote"
Rectangle{
color:"steelblue"
height:parent.height
width:parent.width
radius: 10
}
Image {
anchors.right: parent.right
anchors.top: parent.top
anchors.topMargin: -20
scale: 0.5
source: "close.png"
MouseArea {
width:parent.width
height:parent.height
onClicked: Qt.quit()
}
}
AnimatedSprite{
source: "Animation_Cloud.png"
anchors.centerIn: parent
frameHeight:313
frameWidth:232
running: true
frameCount:60
frameDuration: 20
width:232
height:313
}
}
나는 컴파일 할 때와 발사는 내가 스프라이트 애니 메이팅을 얻을 수 있지만, 그 일을하는 동안 오른쪽에서 왼쪽으로 이동합니다.
어떻게 스프라이트를 설정하고 "반 화살표"를 계속 움직일 수 있습니까?
여전히 흔들리고 있지만 강하지는 않습니다. 포토샵에서 최적화하려고합니다. – Miterion