Hello I am Russian so my english not is good but i need some help.
I need a way to use the mouse to select a block, like in minecraft from a 2d grid, the blocks are 32x32.
how do i this?
Hello I am Russian so my english not is good but i need some help.
I need a way to use the mouse to select a block, like in minecraft from a 2d grid, the blocks are 32x32.
how do i this?
Transform mouse-space coordinates to world-space, and then take the block at that location.
Can you post an MCVE showing the basics of what you’re trying to do?
We don’t even know if you’re using Java2D or libGDX or something else. HeroesGraveDev gave you the basics, but anything more specific than that will require more information than we have.
thank you fellers i fuigured it out.
Also, I would recomend revisiting “The Island”, as i have made some changes.