ForumsProgramming ForumLevel Codes?

3 3302
ThexDancingxMuffin
offline
ThexDancingxMuffin
63 posts
50

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. :]

  • 3 Replies
MikeVarilek
offline
MikeVarilek
36 posts
40

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.

ThexDancingxMuffin
offline
ThexDancingxMuffin
63 posts
50

Thanks a bundle!

MikeVarilek
offline
MikeVarilek
36 posts
40

no problem =D

Showing 1-3 of 3