import QtQuick 2.0 import Felgo 3.0 EntityBase { entityType: "badCoin" poolingEnabled: true // put them before the windows z:1 Image { id: sprite source: "../../assets/badCorn.png" width: 10 height: 19 anchors.centerIn: parent } property alias collider: collider BoxCollider { id: collider bodyType: Body.Static anchors.fill: sprite // it should not affect the movement of the player sensor: true } }
Voted #1 for: