Copy link to clipboard
Copied
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.
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.
Copy link to clipboard
Copied
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.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now