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) › key mapping?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #8952

    Christopher

    I’m looking over the platformer demo, specifically at the player, and I’m wondering why he jumps when I press up. I’m looking at this file http://felgo.com/doc/v-play-demos-platformer-qml-entities-player-qml/ I can see why he jumps but where are the buttons defined that call the jump function? If I wanted to change jumping from the up arrow to the space bar how could I?

    #8953

    Alex
    Felgo Team

    Hi,

    have a look at the TwoAxisController component in the GameScene.qml file.
    You can also add console.debug(actionName) in the onInputActionPressed signal handler to see what codes you have to check against when you want to use the space button instead.

    Cheers,
    Alex

    #8954

    Christopher

    Thank you!

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

RSS feed for this thread

You must be logged in to reply to this topic.