Copy link to clipboard
Copied
animation keeps running through. I want it to stop on main menu so i can click buttons which navigate to different scenes. Please help I am a noob.
here are screen shots of what i have going on:
Main time line "home" menu
script in frame 1
script in frame 48
scene 2 animation of shape tween which isnt supposed to run all the way through past the home page. I want it to animate but only after i click the button to do so.
script for this scene
scene 3 which is causing all the issues i think? supposed to be able to drag boxes. but it just runs through without stopping when i play it.
here is the compiler errors:
If you removed the stop() from scene 2 it will not stop there it will return to wherever "home" is.
If you intend to have the timeline stop at some frame, then you need to place a stop() command in that frame, or use a gotoAndStop() command.
If you are going to use scenes be consistent with the way you write the goto commands. The use of is rarely recommended - instead, use different sections of the timeline of just one scene, or use movieclips and control their visibility, or a combination of bo
...Copy link to clipboard
Copied
You need to fix the errors before the file will have a chance of playing right. What is line 23 of frame 88?
If you have scenes then to find frame 88 you will have to add the frames starting from frame 1 of scene 1
Copy link to clipboard
Copied
i dont have an 88th frame but it was referring to my
gotoAndPlay(“home”)
on line 23 of the asin scene 3
Copy link to clipboard
Copied
How many frames do you have in each scene (reread my last posting's last sentence).
Also, that gotoAndPlay("home"); on line 23 of the last screenshot means you are not going to be staying in that frame at all.
Copy link to clipboard
Copied
i have 20 in scene 1
49 in scene 2
and 20 in scene 3
i got rid of the
gotoAndPlay("home"); on line 23
Copy link to clipboard
Copied
What about the same line that's in Scene 2? It doesn't make sense to have a stop() and a gotoAndPlay() in the same set of code.
Do you still get that frame 88 error after removing the scene 3 line?
Copy link to clipboard
Copied
yes. the frame 88 error was gone after removing the scene 3 line.
i have fixed that problem.
i removed the stop from scene 2 and added the Scene 1 in addition to the label "home" becaue it couldnt find it. Now the button to scene 2 doesn't work at all.
Copy link to clipboard
Copied
If you removed the stop() from scene 2 it will not stop there it will return to wherever "home" is.
If you intend to have the timeline stop at some frame, then you need to place a stop() command in that frame, or use a gotoAndStop() command.
If you are going to use scenes be consistent with the way you write the goto commands. The use of is rarely recommended - instead, use different sections of the timeline of just one scene, or use movieclips and control their visibility, or a combination of both.
If you continue to have issues, try simplifying first - build/add the navigation for one section at a time instead of trying to get it all in one shot.