ForumsProgramming ForumLevel Codes?

3 4671
ThexDancingxMuffin
offline
ThexDancingxMuffin
61 posts
Nomad

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
Nomad

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
61 posts
Nomad

Thanks a bundle!

MikeVarilek
offline
MikeVarilek
36 posts
Nomad

no problem =D

Showing 1-3 of 3