Scripts / Screen cursor X & Y editor - Free

Author
Message
gd
8
Years of Service
User Offline
Joined: 21st Jul 2016
Location: Small Darkroom with no red light
Posted: 16th Nov 2016 08:24 Edited at: 16th Nov 2016 09:12
Hi guys, this little tool maybe a good way to find out the screen coordinates X & Y for the mouse. It also has the scan key numbers.
I made this to easier plot areas of the screen for making menus and HUD's.

Below you will find the attached zip file with all the files included.

How to use

Step 1
Always back-up, back-up, back-up!

Step 2
Unzip attached [ Files ] and paste in the [ Game Guru ] folder.

\Steam\SteamApps\common\Game Guru

Step 3
Restart Game Guru.

Step 4
Load the map filename [ Cursor Edit Area.fpm ]
This will load the entity and script.

Step 5
There is no need to edit any properties of the cursor entity, as they have already been setup by the fpe and script files.

Step 6
Test map.

You will notice it will go into full screen with two images showing one above the other.
The bottom layer is a example of the title screen only for this test. You can change this for your own image. All you need to do is rename the png to yourImage.png and place in into the same folder (How to below). The images are set at 1920x1080.

In the top right hand side you will see the coordinates of the mouse and the key stroke in a panel.

Step 7
Move you mouse to find the X & Y coordinates you need and write them down.

Step 8
The keyboard scan codes.
When you press a key on your keyboard it will also be shown in the panel, the scan code then the key pressed.

Step 9
This will speed up game design and save you time to focus on more important areas. This is design to start as soon as you run the test level. If you want it to work only when you are near the cursor entity then you have to change the script.

In the screenshots below you can see I'm am plotting out the first button [ Start ].

Start Button
Top left: X 38.5 - Y 29.5
Top right: X 62.3 - Y 29.7
Bottom left: X 35.5 - Y 36.7
Bottom right: X 62.2 - Y 36.7






Key pressed
In this screenshot I am pressing the [ e ] key which shows as scan code 18.



Files
The file you can swap out for your own is [ yourImage.png ], which can be found here:-

\Steam\SteamApps\common\Game Guru\Files\scriptbank\images\Editor\

The cursor entity will be in its own folder from the entity menu named [ Editor ]

The script file [ editor_screen.lua ] can be found here:-

\Steam\SteamApps\common\Game Guru\Files\scriptbank\Editor\

Panels
If you want my sci-fi panels they are here:-
Shadow text in panels

You tube example Screen cursor X & Y edit - for GG (Game Guru)

^ Sorry for the low quality but using an old laptop ^
Dark Base 900 Pro OJ: Rampage V Ed.10, i7 6950x non-OC, DDR4-3333 64 GB RAM, Win 10/64, Asus Strix GeForce 1080 x 2 MDA mode, Water cooled with an old Victorian cast iron radiator and a industrial leather belt driven fan - That's what you call Steampunked.

Laptop - M17xR3

A new competition running for GG

Attachments

Login to view attachments
PM
TazMan
GameGuru TGC Backer
13
Years of Service
User Offline
Joined: 20th Jan 2011
Location: Worldwide Web
Posted: 18th Nov 2016 11:06
Looking good, could be very useful thanks gd.
HP Pavilion Laptop - AMD A8-4555M APU with Radeon(tm) HD Graphics - 1.6GHz, 8GB Memory, Windows 10 Home, 64-bit Operating System.

I've got something to say - It's better to burn out than fade away.

Login to post a reply

Server time is: 2024-12-22 23:46:31
Your offset time is: 2024-12-22 23:46:31