Forums

OverviewV-Play 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://v-play.net/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
    V-Play 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.

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