:)
I am currently working on a scene, I can get all movements to work great except the line 34 snooze part and the line 37 the background picture to change, It just goes black I even tried to load a picture from the web address I thought maybe the string needed a hyperlink so I picked a picture from the web. just goes black. In my scene I wanted my girl to move in different postions the come back then yawn and look like she is sleeping. Does anyone know what the switch is for the character to look like they are sleeping. I tried snooze did not work. I have seen on Haptek Corperate page if I leave it up Lola looks like she was sleeping. I am inserting my full code from my test webpage just incase I am missing something if anyone can assist.
John
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 2</title>
</head>
<body>
<SCRIPT src="HapPlayer411.js"></SCRIPT>
<SCRIPT src="HapToDoList.js"></SCRIPT>
<SCRIPT>
VFBox(300, 380, 'none');
</SCRIPT>
<!--script src="HapPlayerDebugger.js"></script-->
<SCRIPT>
AddToInitQueue("UseBackground('loading.jpg', 'R');");
AddToInitQueue("StartupWoman();");
AddToInitQueue("HapToDo_Pulse();");
AddToInitQueue("MainPart();");
function StartupWoman()
{
var downloader = new Downloader();
downloader.AddFile("fullbodgrl12.htr", "R");
downloader.AddFile("lighting2.hap", "R");
downloader.DoIt();
UseFile("fullbodgrl2.htr", "R");
UseFile("hair.htr", "R");
UseFile("lighting2.hap", "R");
UseBackground("background2.jpg", "R");
}
function MainPart()
{
HapToDo_Clear(0);
HapToDo_Add_JS(00, "SendText('\\\\SetSwitchIntensity [switch= energyHigh f0= 0.565000 t= 50]');");
HapToDo_Add_JS(01, "SendText('\\\\Translate [x= 0 y= -4 z= 10 t= 0]');");
HapToDo_Add_JS(05, "SendText('\\\\Rotate [ y= -45 t= 10]');");
HapToDo_Add_JS(08, "SendText('\\\\Translate [x= -3.2 y= 5 z= -25 t= 4]');");
HapToDo_Add_JS(11, "UseFile ('Intro.ogg', 'R');");
HapToDo_Add_JS(13, "SendText('\\\\Translate [x= 0 y= 70 z= -170 t= 10]');");
HapToDo_Add_JS(15, "SendText('\\\\setswitch [figure= fullbod switch= lookup state= a]');");
HapToDo_Add_JS(18, "SendText('\\\\setswitch [figure= fullbod switch= lookleft state= c]');");
HapToDo_Add_JS(20, "SendText('\\\\setswitch [figure= fullbod switch= mouthhappy state= a]');");
HapToDo_Add_JS(23, "SendText('\\\\setswitch [figure= fullbod switch= hands_on_hips state= start]');");
HapToDo_Add_JS(28, "SendText('\\\\Translate [x= 0 y= -4 z= 10 t= 5]');");
HapToDo_Add_JS(32, "SendText('\\\\setswitch [figure= fullbod switch= yawn state= a]');");
HapToDo_Add_JS(34, "SendText('\\\\setswitch [figure= fullbod switch= snooze state= a]');");
HapToDo_Add_JS(37, "SendText('\\\\LoadBackground [background= http://www.free-pictures-photos.com/clouds/cloud-04.jpg]');");
}
</SCRIPT>
</body>
</html>