Scripts / radar position

Author
Message
Slaur3n
GameGuru TGC Backer
16
Years of Service
User Offline
Joined: 16th Sep 2008
Location: Norway
Posted: 29th May 2016 23:00
Hey
I want to place my radar down to the left corner of the screen. Which positions should i change in the script??
Visit our FB site and like
https://www.facebook.com/crowhillstudiosofficial
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 30th May 2016 08:21 Edited at: 30th May 2016 08:31
Change the "SetSpritePosition (radarSprite, 90, 15) line them make the same change to the lines "x = 90 + ..." and "y= 15 + ..." (those lines appear twice btw)

Edited to add that the numbers represent % of screen from top left, so 10, 70 would put it down in the left bottom corner.
Been there, done that, got all the T-Shirts!
PM
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 30th May 2016 09:59
You'd need to change the enemy sprites and the player sprite too right?
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 30th May 2016 10:21
Those are the "x=" and "y=" lines
Been there, done that, got all the T-Shirts!
PM
Kalle801
10
Years of Service
User Offline
Joined: 8th Jan 2014
Location: Germany
Posted: 15th Jun 2016 17:18
How do you now these coordinates pls?
Belidos
3D Media Maker
9
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 15th Jun 2016 17:20 Edited at: 17th Jun 2016 07:46
AmonMoses tells you in the second post

the two numbers are x and y locations in a % of the screen.

1,1 is the top left
100,1 is the top right
50,50 is the middle
1,100 is the bottom left
100,100 is the bottom right

i5, NV960 2GB, 16GB memory, 2x 2TB Hybrid, Win10.
i3 , Intel integrated graphics, 6GB memory, 512GB Generic SATAIII Win8.1.
Intel Celeron (duel Core), Radeon integrated graphics, 4GB memory, 180gB Generic SATAII, WinVista.
Q6600, Intel integrated graphics, 8GB memory, 512GB Generic SATAII, Win7.
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 15th Jun 2016 18:37
Almost right, the Y amount is down the screen so 1,100 would be bottom left and 100,0 top right. It is always catching me out when positioning sprites in relation to other sprites.
Been there, done that, got all the T-Shirts!
PM
Belidos
3D Media Maker
9
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 16th Jun 2016 07:38
Oops yeah, my bad, got stuck in cartography mode for some reason lol, I've edited it.

i5, NV960 2GB, 16GB memory, 2x 2TB Hybrid, Win10.
i3 , Intel integrated graphics, 6GB memory, 512GB Generic SATAIII Win8.1.
Intel Celeron (duel Core), Radeon integrated graphics, 4GB memory, 180gB Generic SATAII, WinVista.
Q6600, Intel integrated graphics, 8GB memory, 512GB Generic SATAII, Win7.
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 16th Jun 2016 17:10
It's still wrong

100,1 is top right, 1,100 bottom left.
Been there, done that, got all the T-Shirts!
PM
Belidos
3D Media Maker
9
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 17th Jun 2016 07:47
[quote[It's still wrong

100,1 is top right, 1,100 bottom left.[/quote]

Yup, that's what I wrote :p

i5, NV960 2GB, 16GB memory, 2x 2TB Hybrid, Win10.
i3 , Intel integrated graphics, 6GB memory, 512GB Generic SATAIII Win8.1.
Intel Celeron (duel Core), Radeon integrated graphics, 4GB memory, 180gB Generic SATAII, WinVista.
Q6600, Intel integrated graphics, 8GB memory, 512GB Generic SATAII, Win7.

Login to post a reply

Server time is: 2024-12-22 18:21:21
Your offset time is: 2024-12-22 18:21:21