Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (AndrewAMD, Ayumi, NewbieZorro), 14,141 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
resolution #414958
01/11/13 15:20
01/11/13 15:20
Joined: Apr 2012
Posts: 106
G
GaniX Offline OP
Member
GaniX  Offline OP
Member
G

Joined: Apr 2012
Posts: 106
hello.
I have the next problem:
in my pc the game run fine. but when I run it on the PC of a friend,the crosshair and panels are not in their places, are a bit more to the right or perhaps down, the game is ready in 800x600 resolution mode window.
I guess the problem is that the monitor of my friend .is rectangular and other definition.

the question is there any way to make everything (2D and 3D entities panels, crosshair) is in place between different monitors with different resolutions?

Re: resolution [Re: GaniX] #414960
01/11/13 15:28
01/11/13 15:28
Joined: Dec 2011
Posts: 1,823
Netherlands
Reconnoiter Offline
Serious User
Reconnoiter  Offline
Serious User

Joined: Dec 2011
Posts: 1,823
Netherlands
Do you already have something like this to put the panels in the right positions regardless of the resolution?:

Code:
function InterfacePanelPositions_startup()
{	
while(1) {
//positions	
Health_pan.pos_x = screen_size.x * 0.02; 
Health_pan.pos_y = screen_size.y * 0.83;
Energy_pan.pos_x = screen_size.x * 0.89; 
Energy_pan.pos_y = screen_size.y * 0.83;
Ammo_pan.pos_x = screen_size.x * 0.62; 
Ammo_pan.pos_y = screen_size.y * 0.87;
//scale
Health_pan.scale_x = screen_size.x / 800; 
Health_pan.scale_y = screen_size.y / 600;
Energy_pan.scale_x = screen_size.x / 800; 
Energy_pan.scale_y = screen_size.y / 600;
Ammo_pan.scale_x = screen_size.x / 800; 
Ammo_pan.scale_y = screen_size.y / 600;
wait(2);}
}


Last edited by Reconnoiter; 01/11/13 15:32.
Re: resolution [Re: Reconnoiter] #415095
01/13/13 19:39
01/13/13 19:39
Joined: Apr 2012
Posts: 106
G
GaniX Offline OP
Member
GaniX  Offline OP
Member
G

Joined: Apr 2012
Posts: 106

thanks this is just what I need


Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1