00:00
00:00
EyeBallTank
Working on Project Nortubel.
https://rentry.co/axmy9

READ MY RENTRY POST

Joined on 8/24/21

Level:
19
Exp Points:
3,892 / 4,010
Exp Rank:
13,361
Vote Power:
6.11 votes
Rank:
Civilian
Global Rank:
> 100,000
Blams:
0
Saves:
18
B/P Bonus:
0%
Whistle:
Normal
Medals:
29

2 current issues with my game: Misplaced off-screen pointer and attempt at localization

Posted by EyeBallTank - April 27th, 2023


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,


Tags:

Comments

Comments ain't a thing here.