Find the Best Demos and Examples

Check out this quick tour to find the best demos and examples for you, and to see how the Felgo SDK can help you to develop your next app or game!

Forums

OverviewFelgo 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
    Felgo 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
    Felgo 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.