Hi wodering, does the animation needs to be set within the Entity ?
Meaning I have simple rectange EntityBase which I show in the defalut scene, and want to animate its moving to a diff position (in x or y), can I do that from the main.qml flie or should I do something similar to the 2028 sample by forc e (meaning setting the animation wihin the Rectangle.qml file)
I havesomething like this in my main.qml file
Block{
anchors.centerIn: parent
}
NumberAnimation{
id:animateBlock
target:Block
property:"x"
from:0
to:50
}
And this my rectangle.qml file
import Felgo 3.0
import QtQuick 2.0
EntityBase {
entityId: "rectangle1"
entityType: "customEntity"
Rectangle {
id: block
width: 30
height: 50
color: "red"
}
}
So far I’m getting this error: qrc:///qml/VPlay/core/EntityBase.qml:567: ReferenceError: entityManager is not defined
Sorry Im just starting with vPlay and not very proficient with JS
Hope you understand my doubt, thx in advance.