Forums

ForumsProgramming Forum

Level Codes?

Posted Apr 19, '08 at 1:32am

ThexDancingxMuffin

ThexDancingxMuffin

64 posts

I would just like to know how to put in a level code feature--where you can return to a certain level or area by typing in a passcode. I am extremely new to Flash, and I am assuming that you would program so with ActionScript? (Sorry if that's a stupid question.)
Help or tutorials are much appreciated. Thanks in advance. :]

 

Posted Apr 19, '08 at 5:02pm

MikeVarilek

MikeVarilek

38 posts

This answer is for if you are using AS2
Make an input text field (give it a label, like inputName), and below that a button.
then place this code on the button
on (release) {
if(inputName == "What you want them to type in&quot {
gotoAndStop(frame number);
}
}
they have to match it with capitalization with this method.
you can use the toLowerCase() function on their input to make it so that capitalization does not matter.

 

Posted Apr 19, '08 at 6:58pm

ThexDancingxMuffin

ThexDancingxMuffin

64 posts

Thanks a bundle!

 

Posted Apr 20, '08 at 8:45pm

MikeVarilek

MikeVarilek

38 posts

no problem =D

 
Reply to Level Codes?

You must be logged in to post a reply!