i've been having trouble with this all day, and i can't quite figure out what's wrong.
there's an NPC in my game that is supposed to speak. right now, there's a button ("arrow_btn") inside the NPC movie clip ("evilulu_mc") that is supposed to progress the conversation when pressed.
the conversation starts on frame 3 of evilulu_mc, so naturally the button on frame 3 is supposed to gotoAndStop to frame 4, and the button on frame 4 to frame 5, and so on. frame 3 to frame 4 works fine, but for some reason the arrow on frame 4 goes BACK to frame 3 instead of going to frame 5! why?
or you can not have any commands on the btn, and inside it you can have a button that makes it go to the next frame. And on the next frame don.t include that code.
i tried taking the code off evilulu_mc and putting a button inside it instead, but then it didn't do anything at all when clicked. and with the if (!evilulu_once){ code, it goes to frame 3 and stops. what am i doing wrong?
post the fla. perhaps you should be using gotoAndStop() instead so the playhead stops on frame 4 rather than gotoAndPlay() which plays from frame 4. but without the fla - who knows
same thing as before; it goes to frame 3 and stops. and when i take the code off of evilulu_mc nothing happens when i click it, even though the movie clip on frame 1 (within evilulu_mc) has the this.gotoAndStop(3); code.
maybe i need to use an if(condition), else{null;} code or something so that after going to frame 3 it acts on the arrows' codes and not evilulu_mc's?
hope this works - it works for me. i wont be reading my emails for 2 or 3 days so if you have a problem let me know and when i can i will get back to you.
Merry Christmas
Last edited by gorlummeeguvnor; 04-19-2011 at 04:32 PM.
even though the movie clip on frame 1 (within evilulu_mc) has the this.gotoAndStop(3); code.
rereading your post.
Just in case you cant open the fla - its in flash8 - the code I gave you needs to be inside the evilulu_mc where you placed all the stop()'s. And delete the on(release) handler that you put on the evilulu_mc.
good luck
hope this works - it works for me. i wont be reading my emails for 2 or 3 days so if you have a problem let me know and when i can i will get back to you.
Merry Christmas
can you just tell me what codes go where? i can't open the file, and it seems like no one online is willing to convert it for me.
okay. and don't worry about the character with the blue hair; she's supposed to move using the arrow keys, and i got that code to work, but i had to take that out of this file so it would be less than 300kb.