Whoah, you’re at our level cap. Good job, you rock! Here, have some cake.
Community Get activity updates from around Kongregate.
Explore Kongregate & earn 10 kreds Here are your 10 free kreds Explore Kongregate & earn a trophy Here’s a shiny trophy for you 15%
Keep exploring Kongregate with more badges and games!
Hide the progress bar forever? Yes No
12 posts
Sign in to reply
How do I make it so that if I press tab,it goes to frame 9?
Are you trying to prevent people from tabbing through clickable elements?
You can do something along the lines of “showBoundingRect = false” or something like that. Can’t remember the exact function.
But to answer your question, you’ll have to use a looping frame to check if Key.isDown(Key.TAB);
if (Key.isDown(Key.TAB) { gotoAndPlay(9); }
If you put everything in a movie clip, nothing is tabable. And you can’t use (play) to cheat.
Jude,when I use that code,I get the following error
‘)’ expected if (Key.isDown(Key.TAB) {
@ yrudoy I have a custom menu,you can’t use anything but Flash Settings
Jude forgot another “)” after the if statement.
Ah, so it’s
#if (Key.isDown(Key.TAB)) { #gotoAndPlay(9); #}
Thanks for your help everyone!
EDIT: Errr…why is it not working?
Oops. Wasn’t paying attention to syntax :P
Thanks, arcaneCoder :D
@SevereFlame: It should work…
Are you using AS2 or AS3?
AS2. Many of the scripts I steal off the internet don’t work with AS3 (lol?)
Because it’s pretty new.
Does the frame 5 have any animation? If it’s just one frame that says “GAME OVER”, put a stop(); on that frame.
….
Holy,…I.. I didn’t realize that it didn’t say gotoAndStop.
Thanks for all your help.
But,…I AM supposed to put it in the actionScript of the first frame right?
X
Loading