2d-games

Get any objects (Rect, Surfaces…) at position / coordinates X, Y

Get any objects (Rect, Surfaces…) at position / coordinates X, Y Question: So the question is simple: Given a Surface, let’s call it screen and x,y coordinates, can I get anything that lays at that coordinates on that Surface? For example, let’s say we have typical, Player attack, and if the attack reach the Enemy …

Total answers: 1

Mouse pos not lining up with grid

Mouse pos not lining up with grid Question: This is my 2nd/3rd time making an array backed grid in pygame, that changes cell colour on click. However, despite using my previous code, I have been unable to figure out why my current code is not working. The problem I am facing is that, when I …

Total answers: 1