Jump to content


Photo

Need Help With Code Snippert !


  • Please log in to reply
2 replies to this topic

#1 Darkzone

Darkzone

    X-S Senior Member

  • Members
  • PipPip
  • 165 posts

Posted 22 December 2004 - 10:58 AM

Ok, i hope one of the coders can help me out, i need to make this 2 Code snipperts to 1 code

CODE


{
           PlaySoundA();
           Aftp();
   }


to this code

CODE


function OnInfo()
       {
        var c = theMainMenu.children[0].children[0];
        if(beInVis)
        {
             theMainMenuViewpoint.isbound = true;
             c.ring.fade = 0.75;
             c.ring.SetAlpha(1);
             c.Main_pod_backing01.fade = 0.75;
             c.Main_pod_backing01.SetAlpha(1);
             c.Main_pod_backing02.fade = 0.75;
             c.Main_pod_backing02.SetAlpha(1);
             c.main_pod1.fade = 0.75;
             c.main_pod1.SetAlpha(1);
             c.main_poda.fade = 0.75;
             c.main_poda.SetAlpha(1);
             c.main_podb.fade = 0.75;
             c.main_podb.SetAlpha(1);
             c.main_pod2.fade = 0.75;
             c.main_pod2.SetAlpha(1);
             c.Main_pod_Vis.fade = 1;
             if(VisOn == false)
             {
                 c.Main_pod_Vis.visible = false;
             }
             beInVis = false;
        }
        else
        {
             mainSoundtrackViewpoint.isbound = true;
             c.ring.fade = 1;
             c.ring.SetAlpha(0);
             c.Main_pod_backing01.fade = 1;
             c.Main_pod_backing01.SetAlpha(0);
             c.Main_pod_backing02.fade = 1;
             c.Main_pod_backing02.SetAlpha(0);
             c.main_pod1.fade = 1;
             c.main_pod1.SetAlpha(0);
             c.main_poda.fade = 1;
             c.main_poda.SetAlpha(0);
             c.main_podb.fade = 1;
             c.main_podb.SetAlpha(0);
             c.main_pod2.fade = 1;
             c.main_pod2.SetAlpha(0);
             c.Main_pod_Vis.fade = 0.75;
             c.Main_pod_Vis.visible = true;
             beInVis = true;
        }
   }


all time i set it there will be an error 21, i hope anybody can help me to set the code to the right place !

Thanks
Dark

#2 Darkzone

Darkzone

    X-S Senior Member

  • Members
  • PipPip
  • 165 posts

Posted 22 December 2004 - 11:39 AM

and i need the same for this code

CODE


function OnYDown()
{
if (InBoardBack == true)
{
  InBoardBack = false;
  StopGameBoardView();
}
else if (InBoardBack == false)
{
    InBoardBack = true;
    StartGameBoardView();
}
}



#3 Darkzone

Darkzone

    X-S Senior Member

  • Members
  • PipPip
  • 165 posts

Posted 23 December 2004 - 06:56 AM

can nobody help me to complete this code ? I cant believe it !




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users