Off-screen marker/pointer
This is a feature i think would make sense in my game: If the Companion is off-screen, something shows up to point at their direction and if they’re on-screen, said pointer disappears.
Obviously, the problem may rely on the design i choose for the object (An Astrolabe with the base and arrow being seperate sprites) but i just want the Astrolabe to be close enough to the borders of the camera instead of being cropped.
A potential solution (That i don’t know exactly how, since i copied code from a video by GameEndeavor) is to figure out in the code how to calculate some distance from the screen’s margins (Because another problem i want to avoid is if the Astrolabe is only close enough to the left/bottom margins but still passes the right/top margins).
I even tried messing with pivot points of the sprites and using an invisible secret sprite as a father node of the main sprites but this trickery didn’t work either.
Because i reached a point of guessing stuff that i still don’t know how to implement, like using an invisible ColorRect and using it instead of the screen’s margins but i don’t even know if that ColorRect should be AutoLoad or a child node of the Companion.
Here’s the code of the Astrolobe https://github.com/EyeBallTank/PROJECT-NORTUBEL-main-ish/blob/main/src/menusandui/CompPointer.gd and a video and image of it even if Imgur will be useless in the future https://imgur.com/a/Ga2BWRU
Localization
Options between setting the game in English or Portuguese should’ve been considered and i used a video by FinePointCGI on how to do it.
The bad news is that Godot can’t detect the CSV file i’m setting unless it’s UTF 8.
And this is bad news because UTF 8 does not have certain characters used in Portuguese, so the ideal mode should be UTF 16 which somehow Godot is not accepting (Even though it does in the video i used as reference).
EDIT:
Turns out i just had to fix the mixing characters in the UTF 8 version, so now i got localization working.
EDIT 2:
The pointer is now within the camera's boarders (Most of the time) even if it looks off but i tried,