Event Position on Player's Screen X,Y

Hi guys, 


I am definitely in the need of some help for my litle project thought I'm not sure if I am asking in the right place of this forum!


I wanted to create an event that follows the character (it will be a gauge that shows the players status).


I placed the Event using pre-defined variables for Player's Y and X Map position. It works perfect but the movement is not fluid. So I thought that getting the Player's Screen X,Y as variables would get it more smooth. The problem is that when I use PLAYER'S SCREEN X,Y instead of PLAYER'S MAP X,Y the event doesn't show!!! Not sure what I'm doing wrong!


NOTE - I'm using YEP_CoreEngine and defined the screen size as 1920x1080. I'm not sure if this is related to the problem.


Cheers

script screen x.png

script map x.png
screen coordinates are pixel coordinates, map coordinates are grid coordinates.


And one grid position is 48x48 pixels


So the screen X of the player is usually something around 400, which of course in grid coordinates is far outside the map.
Hi Guys,


I think I know what the problem is! Events can only be placed in map ID squares (I think), so the screen x,y coordinates cannot be used as reference. So I changed my strategy to solve this problem. I'm going with the show picture event. The show picture can use screen coordinates just fine🙂 Nice...


Cheers fellow game makers 🙂
screen coordinates are pixel coordinates, map coordinates are grid coordinates.


And one grid position is 48x48 pixels


So the screen X of the player is usually something around 400, which of course in grid coordinates is far outside the map.

Thank you Andar,


I figured that out after asking the question. It took me some time😉 But it's all good now! Thank you!


Cheers 

Original thread: https://forums.rpgmakerweb.com/threads/event-position-on-players-screen-x-y.71797/