IcCookies 24 Share Posted October 25, 2015 Hello eveyone. So I know that if you want to create an area you would do Area fishArea = new Area(3085, 3233, 3089, 3224, 0); but what happens if I want different z values? For example, I still want the equation to be true if I'm on the x and y, but with a z value of 1 instead of 0. How would I do that? Link to comment Share on other sites More sharing options...
RealEngine 24 Share Posted October 25, 2015 dont define it that way. use the same thing but just define new tiles so you can have a cube. Link to comment Share on other sites More sharing options...
Nuclear Nezz 2012 Share Posted October 25, 2015 Area fishArea = new Area(3085, 3233, 3089, 3224, 0); the constructor is x1, y1, x2, y2, z so if you want it on z 1 Area fishArea = new Area(3085, 3233, 3089, 3224, 1); Link to comment Share on other sites More sharing options...
RealEngine 24 Share Posted October 25, 2015 Area fishArea = new Area(3085, 3233, 3089, 3224, 0); the constructor is x1, y1, x2, y2, z so if you want it on z 1 Area fishArea = new Area(3085, 3233, 3089, 3224, 1); I think he wants a cube , so as long as he in an area that has verticle components? Area yourArea = new Area((new Tile(3169, 2976, 0)), (new Tile(3176, 2970, 1))); Link to comment Share on other sites More sharing options...
qbots 239 Share Posted October 26, 2015 I think he wants a cube , so as long as he in an area that has verticle components? Area yourArea = new Area((new Tile(3169, 2976, 0)), (new Tile(3176, 2970, 1))); Or he could just use: Area(int x1, int y1, int x2, int y2) Creates a rectangular area using basic coordinates for any plane. Dont input the Z and it ignores the plane unless the API is lying to me. Link to comment Share on other sites More sharing options...
RealEngine 24 Share Posted October 26, 2015 Or he could just use: Area(int x1, int y1, int x2, int y2) Creates a rectangular area using basic coordinates for any plane. Dont input the Z and it ignores the plane unless the API is lying to me. yeah that should totally work too. Look at all these solutions Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.