I’m going to write a simple bot for a game, and I need to get a section of pixels (or at least one pixel) from the game. How do I do this?
-Grim
I’m going to write a simple bot for a game, and I need to get a section of pixels (or at least one pixel) from the game. How do I do this?
-Grim
I suggest you to look into nested loops like for(condition){statement for(condition){statement}} .
I don’t know if this answer your question.
Can you may be more specific?
No, I want to get pixels from the screen! But not the canvas.
Have a look at the Robot class. You should be able to get a screenshot and then modify it.
Kf