Forums

OverviewV-Play 1 SupportProblems with cocos-renderer › Re: Problems with cocos-renderer

OverviewV-Play 1 SupportProblems with cocos-renderer › Re: Problems with cocos-renderer
#4025

Christian
V-Play Team

Hi,
did you put the entities directory into the qml directory of the project?

When I tried your code, it worked fine on my Windows7 machine with the following folder structure:
.pro file
qml
qml/entities
qml/entities contents: Box.qml, Wall.qml, box.png, boxCollision.wav

Could you try the following simple example, after starting a new V-Play project and and copying the box.png into the qml direcory:

main.qml:


import VPlay 1.0
import QtQuick 1.1

GameWindow {
  width: 800
  height: 600

  Image {
    source: "box.png"
  }
}

Do the other demo games (like Squaby and Chicken Outbreak) also not show any images with cocos renderer?

cheers,
Chris

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support