DXStudioPlayer

Return to Introduction  Previous page  Next page

You can control the DX Studio Player though this class.

 

For example...

 

...

       Scene scene1;

       SoundEffect soundfire;

       WorldObject ship;

 

       axDXStudioPlayer1.GetScene("scene_1", out scene1);

 

       scene1.GetWorldObject("ship",out ship);

       scene1.GetSoundEffect("fire",out soundfire);

 

       ship.SetPosition(0.0f,0.0f,0.0f);

       soundfire.Play();

...

 

Note:

 

You should only attempt to access and control objects after the Load event has been fired, telling you that the DX Studio document has finished loading.



Copyright ©2004 Worldweaver Ltd. DX Studio Home