Thread: Coordinate Format

Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1 Coordinate Format 
    Registered Member
    Join Date
    Apr 2016
    Posts
    194
    Thanks given
    25
    Thanks received
    3
    Rep Power
    63
    absX > 3008 && absX < 3019 && absY > 3354 && absY < 3359);

    Can someone please explain to me how these X and Y coords correspond to each other? they draw an area right?
    I'm just trying to redraw the area where player owned shops can be viewed at home. I tried teleporting to diff combinations of these but still could't open the player owned shops up. They are added correctly, I just don't get the formatting on this.
    Reply With Quote  
     

  2. #2  
    Registered Member
    rebecca's Avatar
    Join Date
    Aug 2017
    Posts
    1,071
    Thanks given
    862
    Thanks received
    915
    Rep Power
    5000
    Each square has an X and Y position, you are basically telling it that the area is between those positions like this, messed up the numbers but imagine thats X on the bottom and Y on the side.
    Attached image

    Code:
    absX > 3008 && absX < 3019 && absY > 3354 && absY < 3359);
    You are either inside the area standing on the tile that is the X positions 3008, 3009, 3010, 3011... and at the same time standing inside where the tile has the Y position 3354, 3355, 3356, 3357...
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Apr 2016
    Posts
    194
    Thanks given
    25
    Thanks received
    3
    Rep Power
    63
    Quote Originally Posted by Expand View Post
    Each square has an X and Y position, you are basically telling it that the area is between those positions like this, messed up the numbers but imagine thats X on the bottom and Y on the side.
    Attached image

    Code:
    absX > 3008 && absX < 3019 && absY > 3354 && absY < 3359);
    You are either inside the area standing on the tile that is the X positions 3008, 3009, 3010, 3011... and at the same time standing inside where the tile has the Y position 3354, 3355, 3356, 3357...
    I get that but I don't understand which X AND Y coords go together????? Why wouldnt you need 4 coordinates. How does this draw an area.

    Like I want to draw an area around edgeville....
    Reply With Quote  
     

  4. #4  
    Registered Member
    rebecca's Avatar
    Join Date
    Aug 2017
    Posts
    1,071
    Thanks given
    862
    Thanks received
    915
    Rep Power
    5000
    the bottom left corner and top right corner, and you are using 4 coordinates? i dont understand
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Apr 2016
    Posts
    194
    Thanks given
    25
    Thanks received
    3
    Rep Power
    63
    Quote Originally Posted by Raiga View Post
    I get that but I don't understand which X AND Y coords go together????? Why wouldnt you need 4 coordinates. How does this draw an area.

    Like I want to draw an area around edgeville....
    Okay so Y:3534 X:3008 && Y:3536 X: 3010 draw a square correct?

    so it would be X:3008 X:3010 Y:3534 Y:3536 in that order?
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Apr 2018
    Posts
    102
    Thanks given
    27
    Thanks received
    9
    Rep Power
    71
    Quote Originally Posted by Raiga View Post
    Okay so Y:3534 X:3008 && Y:3536 X: 3010 draw a square correct?

    so it would be X:3008 X:3010 Y:3534 Y:3536 in that order?
    x > 5 && y > 5 && x <= 10 && y <= 10

    There’s an example box, drawn from bottom left and finished top right
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Apr 2016
    Posts
    194
    Thanks given
    25
    Thanks received
    3
    Rep Power
    63
    Quote Originally Posted by CodeForScape View Post
    x > 5 && y > 5 && x <= 10 && y <= 10

    There’s an example box, drawn from bottom left and finished top right
    Thats not how it's shown tho? absX > 3008 && absX < 3019 && absY > 3354 && absY < 3359);
    I guess what I'm asking does the first X correspond with the first Y and the second X correspond with the second Y
    Reply With Quote  
     

  8. #8  
    Registered Member

    Join Date
    Feb 2013
    Posts
    1,682
    Thanks given
    401
    Thanks received
    402
    Rep Power
    446
    You are basically 'drawing' an area. The code provided determine if you are between the x from left to right, so coordinates 3008 to 3019 in X & on the y from top to bottom, so 3354 to 3359. You basically have an area of 11 on X and 5 on Y.
    Reply With Quote  
     

  9. Thankful user:


  10. #9  
    Registered Member
    Join Date
    Apr 2016
    Posts
    194
    Thanks given
    25
    Thanks received
    3
    Rep Power
    63
    Quote Originally Posted by Delinquent View Post
    You are basically 'drawing' an area. The code provided determine if you are between the x from left to right, so coordinates 3008 to 3019 in X & on the y from top to bottom, so 3354 to 3359. You basically have an area of 11 on X and 5 on Y.
    Now it makes sense. Thank you.
    Reply With Quote  
     

  11. #10  
    Extreme Donator


    Join Date
    Oct 2010
    Posts
    2,853
    Thanks given
    1,213
    Thanks received
    1,622
    Rep Power
    5000
    Attached image

    You're basically creating a box and the code checks if you're inside of it.
    [Today 01:29 AM] RSTrials: Nice 0.97 Win/Loss Ratio luke. That's pretty bad.
    [Today 01:30 AM] Luke132: Ok u fucking moron i forgot i could influence misc.random
    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

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


User Tag List

Similar Threads

  1. Replies: 0
    Last Post: 12-08-2007, 07:37 AM
  2. Replies: 0
    Last Post: 12-08-2007, 07:37 AM
  3. Automatic Username Case formatting!
    By Pkitten in forum Tutorials
    Replies: 9
    Last Post: 12-05-2007, 09:22 PM
  4. Replies: 3
    Last Post: 07-11-2007, 09:56 AM
  5. Better format for saving 3D/21-Century sigs...
    By Killa Man in forum Tutorials
    Replies: 7
    Last Post: 04-05-2007, 09:35 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •