carenalgas / popochiu

Godot plugin to make point-and-click adventure games, inspired by tools like Adventure Game Studio and PowerQuest.
https://carenalgas.github.io/popochiu/
MIT License
205 stars 19 forks source link

Eye location point for characters #352

Open balloonpopper opened 2 days ago

balloonpopper commented 2 days ago

Topic

I'm proposing to add an "eye location point" for characters, similar to the "look at point" or "walk to point"

Goals

The face commands don't always work as intended.

Your proposal, in detail

The character's location in a room is where their feet are rather than where their head is. When you place a "look at point" on something you expect that to be where the head will face. See example picture 1. I want the character to look at the top locker. image

If you have a large character though (e.g. 1080P games), you may have to put the "look at point" somewhere unintuitive to make the player face the right direction. The yellow arrow in picture 2 shows the angle calculated for the look at direction - and this would make the character face upwards (4 direction character) because the arrow is closer to vertical than horizontal. image

Adding an "eye location point" (yellow X in picture 3) would mean the direction calculated would be based on where the eyes are looking, and it would make the character face the right direction.

image

This could default to the characters location (which would keep facing command behavior the same as it currently is). I don't want to spend hours configuring a character, but adding one additional item that's quick to place I don't think is a big issue.

Record of decisions taken

LEAVE EMPTY

We will discuss in the comments, and fill this area only with the final decision, as we take them.