Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

X/Y Coordinate's

What is an easy way to figure out X/Y coordinate's on the screen. They have always troubled me and when im scripting little edits for my game, I useally have to use guess work. Is there a postitioning tool or something out there?
 
I use MS Photo Editor. (Or any image editor). Capture a screendump of your game (Alt-Prnt Scrn), crop to the 640x480 window contents, then just hold or click your cursor where you want to measure. Usually the status bar in the image editor will tell you where your cursor is. You can usually use the rectangle select tool also if you want to measure from one point to another, or to determine how much to adjust something.
 
Or if you want to know the screen position of a specific object (events or player), you can print its screen_x or screen_y.

Like this

p $game_player.screen_x
p $game_player.screen_y
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top