Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

I have to select the scene after Mouse.CLICK event to use keyboard movement

New Here ,
May 05, 2014 May 05, 2014

Hi, I have been working on a game called The Stray Pixel, and I have it working fine, except for one thing, this thing is the fact that every time the player clicks one of the buttons on a scene iit takes them to another scene but the character can't be controlled on that scene until the background of the scene is clicked. Please help me with this.

TOPICS
ActionScript
209
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , May 05, 2014 May 05, 2014

How is the character controlled?  It might be a matter of resetting the focus as part of the clicking event handler function or changing of the scene... stage.focus = this;

Translate
LEGEND ,
May 05, 2014 May 05, 2014

How is the character controlled?  It might be a matter of resetting the focus as part of the clicking event handler function or changing of the scene... stage.focus = this;

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 06, 2014 May 06, 2014

Thanks it worked

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 08, 2014 May 08, 2014
LATEST

You're welcome

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines