Forums

OverviewV-Play 1 SupportBuildEntityButton – create entity › Reply To: BuildEntityButton – create entity

OverviewV-Play 1 SupportBuildEntityButton – create entity › Reply To: BuildEntityButton – create entity
#5054

phil.jahoda

Thank you for your response, the error in the .pro file is now gone.

Furthermore, I was able to figure out why our BuildEntityButton did not work. It turned out that I was using the wrong id in the EntityManager. After changing that I can now finally create entities.

 

I am currently reading this tutorial about saving Levels with the LevelEditor, as we want to save our levels this way. Unfortunately I cannot use the “LevelEditor” type in my .qml file and it is underlined with the error message “unknown type”.

 

I made all V-Play SDK updates and even checked my V-Play SDK folder if the required .qml files are present (and they are there).

It seems to me as if something is not “imported” correctly. What else do I have to do to use the LevelEditor?

 

Using the LevelEditor like this will cause “LevelEditor” to be underlinded red with the error message “unknown type”:

import QtQuick 1.1
import VPlay 1.0
import Box2D 1.0

CrazyElephantSceneBase {

    id: scene
    
    LevelEditor { // THIS IS UNDERLINED RED
        id: levelEditor
    }

    // ...
}

 

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