Project_Z: update (26/03)
Interactables are near completion: A tile position is used to define the interactable location, with up to 4 activation positions. I use this to make some interactables activables only from ‘down’ (below). Example: A computer, usable only when in front.
Later, I could be interested in various interactables utilisation, regarding the direction they’re accessed. Example: The same computer, usable from front, unscrew and open from back.
I used a provided rectangles intersection method to check for overlap between the player “interactable zone” and a given interactable hotzone. I also reduced the surface of the hotzones, because for 1 pixel worth, the overlapping was true, allowing to interact even when not really in front of the interactable.
As a topdown view, the rectangle representing the player bounds was centered, when it should be near the feet.
I still have to display a nice contextual bubble, for the player to know how to interact with the interactable (with which key).
Stay tuned...











