Forums

OverviewV-Play 1 Supporthowto reset pressed keys on state-change › Reply To: howto reset pressed keys on state-change

OverviewV-Play 1 Supporthowto reset pressed keys on state-change › Reply To: howto reset pressed keys on state-change
#4482

Thomas

i solved one part of the problem by just calling the following script, which resets the object.

function startGame(){
        spaceShip.x = space_ship_x
        spaceShip.y = space_ship_y
        spaceShip.controller.xAxis = 0;
        spaceShip.controller.yAxis = 0;
    }

but still, the last impuls before finishing gets applied to the object at a restart.

except for that, another problem is, that the game crashes, when a button is pressed at finishing and at restart, the object collides with another object.

 

Cheers,

TS

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