Forums

OverviewV-Play 2 Support (Qt 5) › Small bug in 'PlatformerWithLevleEditor' example

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #14513

    Ray

    EditorOverlay.qml, line 146, change

    saveLevel()

    to

    EditorLogic.saveLevel()

    #14518

    Günther
    V-Play Team

    Hi Ray!

    saveLevel() in line 146 of EditorOverlay.qml refers to the saveLevel() function in EditorOverlay.qml line 265, which then calls EditorLogic.saveLevel():

      function saveLevel() {
        EditorLogic.saveLevel();
      }

    I see nothing wrong with this implementation, so everything should work the way it should.

    Best,
    Günther

    #14525

    Ray

    You are 100% right – there is no bug and everything works fine. I simply don’t know why I kept getting “ReferenceError: saveLevel is not defined” error on my previous runs. After Qt Creator restart, the error magically disappeared…

    #14528

    Günther
    V-Play Team

    I see, sounds like Qt Creator messed up the QML/JS checks somehow then. Glad it works now!

Viewing 4 posts - 1 through 4 (of 4 total)

RSS feed for this thread

You must be logged in to reply to this topic.

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