Jump to content

Area values


Prolax

Recommended Posts

final Area YEW_AREA = new Area(3202,3498,3223,3506);

Hi,

 

I have a quick question.

 

Is the Area build on just random tiles around your player? Or what is the adviced way to get the values?

 

Many thanks.

 

That area will be positioned between the two coordinates you just defined it as --> 3202,3498 and 3223,3506

Wether your player is in that current area or not, the area will keep existing ofcourse.

 

I'm not quite sure what your question is so if this hasn't helped you, please tell me.

Link to comment
Share on other sites

Your question doesn't really make sense, but you basically add the opposite corners of a rectangle/square.

 

So you get those coordinates from the game and you place them in the correct place as "x1, y1, x2,  y2"

 

rectangle-fig1.gif

 

final Area YEW_AREA = new Area(x1, y1, x2,  y2);

Edited by Vilius
Link to comment
Share on other sites

Ok, thanks.

 

The question actually is how to get the values of x1, y1, x2, y2

 

Do you just move your player to the location and get the values of the tile where it stands?

 

Move your mouse to one corner tile and get x1 and y1, then move your mouse to opposite corner tile and get x2, y2.

Edited by Nora
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...