Skip to main content
Known Participant
December 12, 2013
Answered

Project deselects itself!

  • December 12, 2013
  • 1 reply
  • 470 views

Hello i have a small annoying problem which i am hoping someone could help me solve. I am making a platform game and in the first frame a have made a little menu where the player can choose his character by clicking on it. When it is clicked a function is fired containing the line nextFrame(); Everything works as it should except i have to click on the screen to select it before i can move the character. Anyone who has a clue how to solve it?

Thank you in advance!

This topic has been closed for replies.
Correct answer kglad

to remedy that in some situations you can use:

stage.focus = this;

1 reply

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
December 12, 2013

to remedy that in some situations you can use:

stage.focus = this;

Known Participant
December 12, 2013

Awesome! That did the trick. Thank you

kglad
Community Expert
Community Expert
December 13, 2013

you're welcome.