Hello all,
Using the QML knowledge I already have, started to learn developing games using v-play. I though Flappy bird is a good start. After adding the player and Ground.qml as shown in the tutorial. I am getting the following errors:
1)Cannot assign to non-existent property “onEntityManagerDestroyed”
2)ReferenceError: entityManager is not defined
May I know the problem? Is it from my side?
Also, my scene width and height is not scaled properly. looks like this. Also, I would like to know the reason for gap on the right side?
GameWindow {
id: gameWindow
activeScene: scene
screenWidth: 960
screenHeight: 640
Scene {
id: scene
// the "logical size" - the scene content is auto-scaled to match the GameWindow size
width: 480
height: 320
Image {
id: background
source: "../assets/bg.png"
}
Ground{
anchors.bottom: scene.bottom
}
Player{
id:player
x:147
y:167
}
}
}
FYI: OS X El Capitan (10.11), Qt 5.8 installed using the latest v-play installer.
Starting /Users/vishnu/FelgoSDK/workspace/build-tutorial1-Desktop_Qt_5_8_0_clang_64bit-Debug/tutorial1.app/Contents/MacOS/tutorial1…
QML debugging is enabled. Only use this in a safe environment.
NOTE: you are running a development build in Release Mode. However, the Release mode is recommended only for publish builds that are released to the app stores and for final testing. You can enable a publish build in the config.json file in your qml folder by setting the “stage” property to “publish”. For more information see: https://felgo.com/doc/vplay-publishing/
You see the debug statement says “you are running a development build in Release Mode” though I used debug build.
libpng warning: iCCP: known incorrect sRGB profile
qrc:///qml/VPlay/core/EntityBase.qml:573:3: QML Connections: Cannot assign to non-existent property “onEntityManagerDestroyed”
qrc:///qml/VPlay/core/EntityBase.qml:573:3: QML Connections: Cannot assign to non-existent property “onEntityManagerDestroyed”
libpng warning: iCCP: known incorrect sRGB profile
qrc:///qml/VPlay/core/EntityBase.qml:530: ReferenceError: entityManager is not defined
qrc:///qml/VPlay/core/EntityBase.qml:530: ReferenceError: entityManager is not defined
qt.network.ssl: Error receiving trust for a CA certificate
qt.network.ssl: Error receiving trust for a CA certificate
qt.network.ssl: Error receiving trust for a CA certificate
qt.network.ssl: Error receiving trust for a CA certificate
qt.network.ssl: Error receiving trust for a CA certificate
qrc:///qml/VPlay/core/EntityBase.qml:574: ReferenceError: entityManager is not defined
qrc:///qml/VPlay/core/EntityBase.qml:574: ReferenceError: entityManager is not defined
qrc:///qml/VPlay/core/EntityBase.qml:567: ReferenceError: entityManager is not defined
qrc:///qml/VPlay/core/EntityBase.qml:567: ReferenceError: entityManager is not defined
/Users/vishnu/FelgoSDK/workspace/build-tutorial1-Desktop_Qt_5_8_0_clang_64bit-Debug/tutorial1.app/Contents/MacOS/tutorial1 exited with code 0