Results 1 to 7 of 7

Thread: Box around player?

  1. #1
    Join Date
    Jan 2007
    Posts
    834
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Box around player?

    How would I make it so that (a) box(es) are around the player?
    E.X:

  2. #2
    Join Date
    Nov 2007
    Location
    46696E6C616E64
    Posts
    3,069
    Mentioned
    44 Post(s)
    Quoted
    302 Post(s)

    Default

    FindColorSkipBox and FindColorSkipBoxTolerance.
    There used to be something meaningful here.

  3. #3
    Join Date
    Dec 2006
    Location
    Houston, TX USA
    Posts
    4,791
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Something like

    SCAR Code:
    MSCX - 25;
    MSCY - 25;
    MSCX + 25;
    MSCY + 25;

    Would create a 50x50 box at the center of the mainscreen.

  4. #4
    Join Date
    Nov 2007
    Location
    46696E6C616E64
    Posts
    3,069
    Mentioned
    44 Post(s)
    Quoted
    302 Post(s)

    Default

    Quote Originally Posted by IceFire908 View Post
    Something like

    SCAR Code:
    MSCX - 25;
    MSCY - 25;
    MSCX + 25;
    MSCY + 25;

    Would create a 50x50 box at the center of the mainscreen.
    I thought that was obvious
    There used to be something meaningful here.

  5. #5
    Join Date
    Jan 2007
    Posts
    834
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Frement View Post
    I thought that was obvious
    Yea I have that currently. I wanted to know if I can make a box, or boxes, around the players so it doesn't detecting the chopping animation.

  6. #6
    Join Date
    Dec 2006
    Location
    Houston, TX USA
    Posts
    4,791
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Well if you wanted to use FindColors... since it isn't supported by skipbox, you'd need 4 boxes. One top, two side, and one bottom that would take up all the area accept a blank space in the middle.

    SCAR Code:
    TopBox.X1 := MSX1;
    TopBox.Y1 := MSY1;
    TopBox.X2 := MSX2;
    TopBox.Y2 := MSY1 + 100;

    LeftSideBox.X1 := MSX1;
    LeftSideBox.Y1 := MSY1;
    LeftSideBox.X2 := MSX1 + 100;
    LeftSideBox.Y2 := MSY2;

    BottomBox.X1 := MSX1;
    BottomBox.Y1 := MSY2 - 100;
    BottomBox.X2 := MSX2;
    BottomBox.Y2 := MSY2;

    RightSideBox.X1 := MSX2 - 100;
    RightSideBox.Y1 := MSY1;
    RightSideBox.X2 := MSX2;
    RightSideBox.Y2 := MSY2;

    I don't know why I just now realized that I could do this instead of skip box.
    Last edited by Wanted; 01-24-2010 at 12:44 AM.

  7. #7
    Join Date
    Jan 2007
    Posts
    834
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by IceFire908 View Post
    Well if you wanted to use FindColors... since it isn't supported by skipbox, you'd need 4 boxes. One top, two side, and one bottom that would take up all the area accept a blank space in the middle.

    SCAR Code:
    TopBox.X1 := MSX1;
    TopBox.Y1 := MSY1;
    TopBox.X2 := MSX2;
    TopBox.Y2 := MSY1 + 100;

    LeftSideBox.X1 := MSX1;
    LeftSideBox.Y1 := MSY1;
    LeftSideBox.X2 := MSX1 + 100;
    LeftSideBox.Y2 := MSY2;

    BottomBox.X1 := MSX1;
    BottomBox.Y1 := MSY2 - 100;
    BottomBox.X2 := MSX2;
    BottomBox.Y2 := MSY2;

    RightSideBox.X1 := MSX2 - 100;
    RightSideBox.Y1 := MSY1;
    RightSideBox.X2 := MSX2;
    RightSideBox.Y2 := MSY2;

    I don't know why I just now realized that I could do this instead of skip box.
    That just gave me a brilliant idea. So awesome. I can tell you if you want me to. Has to be by PM though

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
  •