User Tag List

Page 2 of 2 FirstFirst 1 2
Results 11 to 13 of 13

Thread: Combining Global Scripts

  1. #11
    Octorok sps999's Avatar
    Join Date
    Feb 2007
    Age
    28
    Posts
    148
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    1,086
    Level
    11
    vBActivity - Bars
    Lv. Percent
    34.64%

    Re: Combining Global Scripts

    Wait a second, that confuses me. Are you saying that intead of
    ...
    }
    //The ball drawing functions
    void DrawBall(int i,int r){
    ...

    I'm supposed to have

    ...
    //The ball drawing functions
    void DrawBall(int i,int r){
    ...
    } //The very end

    or what do you mean?

    Besides, the problem starts right here:

    //The ball and chain functions
    void BallChain(){
    //Check whether the ball should still be going
    if((StoreInput == 1 && Link->InputA) || (StoreInput == 2 && Link->InputB)){
    //Draw the ball and chain
    for(int i=1;i<=4;i++) DrawBall(BallChainCounter,i*8);

  2. #12
    &&
    ZC Developer
    Joe123's Avatar
    Join Date
    Sep 2006
    Age
    33
    Posts
    3,061
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    7,305
    Level
    26
    vBActivity - Bars
    Lv. Percent
    8.97%

    Re: Combining Global Scripts

    Code:
         void DrawBall(int i,int r){
    		int x = Link->X+r*Cos(i); int y = Link->Y-2+r*Sin(i);
    		int tile = T_CHAIN;
    		if(r>30) tile = T_BALL;
    		Screen->DrawTile(3,x,y,tile,1,1,BallChainCSet,1,0,0,0,0,1,128);
         }
         //the other functions go here
    
         //...some more functions
    
         //etc.
    }//end of script

  3. #13
    Octorok sps999's Avatar
    Join Date
    Feb 2007
    Age
    28
    Posts
    148
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    1,086
    Level
    11
    vBActivity - Bars
    Lv. Percent
    34.64%

    Re: Combining Global Scripts

    That ball and chain script seems to cause too much trouble, I think I'll just use the FFC version of it.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Armageddon Games is a game development group founded in 1997. We are extremely passionate about our work and our inspirations are mostly drawn from games of the 8-bit and 16-bit era.
Social