1 decade ago by hallsofvallhalla
I have it where players can place entities. I want the entities animation, or image to be based on what entities are around them. So say for instance I am building a wall. I have all entities fall in a 32x32 grid. If i go to place a block i want to check if any of the squares around it have that entity block.
Anyone have any ideas on how to detect if block exits ontop, to the left, right, and below, or all of the above?
Anyone have any ideas on how to detect if block exits ontop, to the left, right, and below, or all of the above?