-
Hi I need help again
Right I'll try to explain. I've got a game that when the correct button, (button in a movie clip) is pressed it firstly plays a animation then I want it to load the next scene after 3 seconds upon pressing the button.
I've got this code which automatically loads the next scene after 3 seconds but I want to attach it to a mc of a button so it only goes to the next scene once it is pressed.
On the last frame of my main timeline I have:
Stop
Set Variable:"stoppedtime"=GetTimer
then on that same frame I've got a movie clip called scene which consists of two frames
:D frame 1
Set Variable:"stoppedtime"=stoppedtime
Set Variable:"pausetime" ="3000"
If(GetTimer >=pausetime+stoppedtime)
Begin tell target("/")
Play
End tell target
End If
:D frame 2
is blank
Any help appreciated!!
-
In the main timelie put a stop action in the frame where the MC with the button appears.
Then in that Movie Clip, in the last frame put this code:
Stop
Set Variable:"stoppedtime"=GetTimer
In the same frame put the MC called scene.
Im not sure if this is what you mean.
Tell me if you have trouble.
-
hi again,
make the mc:
:Dframe1:
stop
:Dframe2:
Set Variable:"stoppedtime"=GetTimer
:Dframe3:
Set Variable:"stoppedtime"=stoppedtime
Set Variable:"pausetime" ="3000"
If(GetTimer >=pausetime+stoppedtime)
Begin tell target("/")
Play
End tell target
End If
:Dframe3:
Go to and play (_currentframe - 1)
The button action should be:
OnPress
Tell target (/mcname)
Go to and play (2)
End tell target
hope this helps
DRB