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

How to have the spacebar do one thing on one frame and a different thing on a over?

New Here ,
Jan 29, 2014 Jan 29, 2014

I am making a game using flash, and I would like it so you could use the spaebar to skip the story. But the spacebar is also the characters ablity. How is this possible to do. Whenever I try I get lots of errors.

I am new to action script 3, please be kind.

TOPICS
ActionScript
253
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 , Jan 29, 2014 Jan 29, 2014

One way would be to have a conditional that tests takes actions depending on which frame the file is currently in.

Another way would be to remove the listener for the keyboard for the first functionality and add a new keyboard listener when you want the different functionality.

Translate
LEGEND ,
Jan 29, 2014 Jan 29, 2014
LATEST

One way would be to have a conditional that tests takes actions depending on which frame the file is currently in.

Another way would be to remove the listener for the keyboard for the first functionality and add a new keyboard listener when you want the different functionality.

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