Hi again. So i have two 3d actors in the cutscene but i don't know how to script scene so their animations start at one time. Here's the script
#include "scripts\base.inc"
// here comes the stuff which initializes the scene
var char = Scene.LoadActor3D("actors\char\char.act3d");
char.SkipTo(643, 574);
char.Direction = DI_DOWN;
// here comes the stuff which initializes the scene
switch(Game.PrevScene)
{
case "":
case "Scene1":
Game.Interactive = false;
actor.Active = true;
char.PlayAnim("br_cut1_1");
Game.PlaySound("voice\br1.ogg", false);
actor.SkipTo(611, 361);
actor.Direction = DI_DOWN;
actor.PlayAnim("br_cut1_1");
Game.ChangeScene("scenes\Basement\scene1_cut2\scene1_cut2.scene", false, false);
break;
case "Scene1b":
actor.SkipTo(620, 557);
actor.Direction = DI_LEFT;
char.PlayAnim("br_cut1_2");
break;
}
actor.Active = true;
////////////////////////////////////////////////////////////////////////////////
// scene state
global StateScene2;
// default values
if(StateScene2==null)
{
StateScene2.Visited = false;
// add scene states here
}
////////////////////////////////////////////////////////////////////////////////
// setup scene according to state variables
////////////////////////////////////////////////////////////////////////////////
if(!StateScene2.Visited)
{
StateScene2.Visited = true;
// this is our first visit in this scene...
}
so as You can see at the beginning actor Char's doing his animation and then second actor doing his animation. As i said i need to they start animations at one time.
Thanks