Player x and y on the screen
Hello everybody!
This month I've been developing a medieval fantasy platform game with the Quick Engine library. Now I'm doing the physics part and later I'll make the full game.
The bad thing about using libraries is that I can't modify them too much and I can't access / understand the code very well.
I wanted to ask for help with something:
I want to make a radial gradient that starts from the player's position on the screen, but what happens is that the player's position variables in the code are different from how they look on the screen.
Example:
The player starts with respect to x = 0 in the code at x = -100, but the Quick Engine camera does its operations and shows the player in the centre of the screen. So, whatever the position of the player is, he will always be in the centre of the screen.
Now the problem:
I need the two player position variables (x, y), but not the ones in the code, I need the ones on the screen (where the player is located on the screen).
I can see the position of the player in the code, but not where he is on the screen.
Does anyone know how to calculate these variables?
Here is the link of the game: https://microstudio.dev/i/Socks_Entertainment_Studios/plushyknights/
Thank you!