-
i have been going about in circles...
the passwords are just numbers for for example one password could be "178"
I have used
on (release, keyPress "<Enter>") {
if (pass eq "444") {
gotoAndPlay ("correct",1);
} else if (pass ne "444") {
gotoAndPlay ("wrong",1);
}
that does one fine however i need more can i say something like if(pass eq "444" or "111" or "222")
can you do that??? i dont know how to say it.
If you can help Thanks.
-
You would have to say (pass eq "444" or pass eq "111" or pass eq "222")
You don't have to use the else if (pass ne "444") command you can just use an else command and it should work.
-
You can also use if(pass eq"111" || pass eq"222")
|| means or
that should work.
Good luck.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|