Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by vicknick. 06/13/24 08:51
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 1,280 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19059 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 | chip programmers | 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