What are different between "MAP X" and "SCREEN X"?

pangloy

Veteran
Veteran
Joined
Nov 13, 2018
Messages
30
Reaction score
0
First Language
Thai
Primarily Uses
RMMV
What are different between "MAP X" "MAP Y"
and "SCREEN X" "SCREEN Y" ?

Thank you :LZSsmile:
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
6,491
Reaction score
8,306
First Language
Indonesian
Primarily Uses
RMVXA
In Unity terms, there're "world coordinate" and "screen coordinate".
In RPG Maker terms, they're "map coordinate" and "screen coordinate".

The difference is, the map coordinate is the actual coordinate of the game object in the game. Like where the characters/sprites located in the map. Screen coordinate is the coordinate where it will be drawn in your screen,
 
Last edited:

LTN Games

Indie Studio
Veteran
Joined
Jun 25, 2015
Messages
708
Reaction score
639
First Language
English
Primarily Uses
RMMV
As Theo said map coordinates are where its located on the map. Screen coordinates is directly on the screen, a good example of that would be for example a HUD can be displayed at x: 0 and y:0, that will show the HUD at the top left of the screen no matter where your character is on the map but if it was on the map you would have to walk your character to the top left of the map which may involve some scrolling before you get there.
 

Another Fen

Veteran
Veteran
Joined
Jan 23, 2013
Messages
608
Reaction score
320
First Language
German
Primarily Uses
One more notable difference is that map coordinates refer to the tile your character is assigned to. If your character moves, their map coordinates immediately change to those of the tile they are moving towards, with no transition.

The screen coordinates on the other hand are measured in pixels and reflect your characters position more precisely if needed. Apart from HUDs those can also be utilized to check if your characters collide with projectiles or other objects on the screen for example.
 

Latest Profile Posts

Mod name: "[Game name] Gameplay Overhaul"
What they actually mean: "Here is a mod that makes the game harder."
I decided to reinstall one of my most favourite game of all times, Gothic 2. Time to get back to Khorinis!
So much game make... I needs to rest. The foods call.
-Casino with bunnysuit green check.png
1638563168795.png
Monday December 6th 2021 at 7PM Hawkzombie will stream A Thief's Voyage on his Twitch.

Hawkzombie Twitch

Check it out.​

Forum statistics

Threads
117,164
Messages
1,105,069
Members
153,252
Latest member
Rostilab
Top