I am interested if you could explain more i would appreciate it.
I do understand the principles but not really how they could be applied in this instance. also how would that do anything but...
Type: Posts; User: Lurie1
I am interested if you could explain more i would appreciate it.
I do understand the principles but not really how they could be applied in this instance. also how would that do anything but...
The tiles are just the data points in the array I display them according the the number stored in the array 1-10. they are 45 by 45 pixel squares of varying color depending on the number in the array...
At this point I have a tile based game. The tiles are stored in a 6 by 12 array labelled 1-10. I need to search the board to find if there are 3 or more in a row or column after the player makes a...
I have been set a problem and do not know how to solve it, basically it is this.
I am given a 6 by 7 board with a total of 42 squares on it. Each of those squares has a line on it the line is...
to a robot function i want to move the mouse to that point
so the steps for specifying a point to either check would be, rectangle coordinates x, y + coordinates specified right?
yea i drew them out, ok well i guess if they have to be set like that they do...
well the problem because i could use screen coordinates for x, y but the rectangle will be in a different place every rime a random place on screen so would i have to say for each chunk of code set...
ok newbie question but once i set a rectangle using the robot class like the one above is there a way i can set that as the screen so when i say robot.mouseMove(x, y) it will move to the x, y inside...
ok will do
ps i understood the above just did not check if they were in the correct order assuming something was wrong with the code not the placement.
thanks norm i didn't realize i had them in the wrong order, i just updated the code to reflect this! but i don't have to define the variable i guess im using the wrong variable that bit of code where...
<
import java.awt.*;
import java.awt.event.*;
import java.awt.Robot;
import java.awt.AWTException;
import java.awt.Rectangle;
import java.awt.Color;
import java.awt.Toolkit;
import...
this is my code i have a few problems but this is the biggie:
<
{
Robot robot = new Robot();
Color color0 = new Color(39, 36, 11);
Rectangle a = new Rectangle(0, 0, 1365, 770);...
<
import java.awt.*;
import java.awt.event.*;
import java.awt.Robot;
import java.awt.AWTException;
import java.awt.Rectangle;
import java.awt.Color;
import java.awt.Toolkit;
import...
ok so where would i put it? i took it out completely and its still not looping, do i need to put it in at the end of the method?
ok explanation, no i want that chunk of code to repeat over and over again until it returns with a true (an i found the pixel mate) and im hoping the while loop is the best one but im open to...
<
{
Rectangle rectangle = new Rectangle(0, 0, 1365, 770);
{
while(true)
{
BufferedImage image = robot.createScreenCapture(rectangle);
search: for(int x = 0; x <...
no i guess it does not but i imported the untility.Arrays so i was under the impression i could use search and other tools without making methods around them?
the reason im posting is because i dont know how to solve them and i understand them but because i imported the whatchumacallit and all idk why im getting them
1. java:43 cannot find symbol...
this is the code i have so far:
<
import java.awt.*;
import java.awt.event.*;
import java.awt.Robot;
import java.awt.AWTException;
import java.awt.Rectangle;
import java.awt.Color;
so in the method class i would set inputColor == and then i would just do Mouse.move and the x, y will be the set after i set inputColor?
Ok so i have this class which is my find pixel class, i believe as it is now it will when called find the inputColor value and set its location using the set location. What i need to do now is make...
well the method will take a screen shot, search the shot for the color that was input through int inputColor and return the x, y of the pixel with that specific color
what do you mean how am i going to return the x, y values. I'm going to call the method and get both the x and y values of the color specified set them in the main class as current x,y values and use...