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
1 registered members (TipmyPip), 18,631 guests, and 7 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
Page 2 of 2 1 2
Re: start screen bmap resizeable? [Re: Lukas] #347682
11/17/10 20:15
11/17/10 20:15
Joined: Nov 2008
Posts: 43
Ice2642 Offline OP
Newbie
Ice2642  Offline OP
Newbie

Joined: Nov 2008
Posts: 43
It is true, no loop needed when the game is done, just the function for resize when the player change the settings.

I need sleep hehehehehe

Thank you very much.

BR


A8 PRO 8.47.1
Re: start screen bmap resizeable? [Re: Lukas] #347683
11/17/10 20:17
11/17/10 20:17
Joined: May 2007
Posts: 2,043
Germany
Lukas Offline

Programmer
Lukas  Offline

Programmer

Joined: May 2007
Posts: 2,043
Germany
To the edit: No, I didn't mean that.

More like that:

Code:
void panel_scale()
{
	splash.pos_x = splash.pos_y = 0;
	splash.scale_x = screen_size.x / splash.bmap.width;
	splash.scale_y = screen_size.y / splash.bmap.height;
}


void main ()
{
	...
	video_set(...); // this is where you change your resolution
	panel_scale(); // now correct the size
}



Re: start screen bmap resizeable? [Re: Lukas] #347686
11/17/10 20:32
11/17/10 20:32
Joined: Nov 2008
Posts: 43
Ice2642 Offline OP
Newbie
Ice2642  Offline OP
Newbie

Joined: Nov 2008
Posts: 43
I get laugh

Thank you.

EvilSOB and Lukas will receive a free copy of the game when it is done laugh

BR


A8 PRO 8.47.1
Re: start screen bmap resizeable? [Re: Ice2642] #347688
11/17/10 20:35
11/17/10 20:35
Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Rei_Ayanami Offline
Expert
Rei_Ayanami  Offline
Expert

Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Or you set your panel_scale void as an event from on_resize

on_resize = panel_scale;

-> once in your main, and you don't need to call it yourself if you want to resize the screen wink

Re: start screen bmap resizeable? [Re: Rei_Ayanami] #347693
11/17/10 21:15
11/17/10 21:15
Joined: Nov 2008
Posts: 43
Ice2642 Offline OP
Newbie
Ice2642  Offline OP
Newbie

Joined: Nov 2008
Posts: 43
Good idea!

I agree. you won a free copy too laugh

the code main and scale be this until this moment;

Code:
void painel_scale()
{

	splash.pos_x = splash.pos_y = 0;
	splash.scale_x = screen_size.x / splash.bmap.width;
	splash.scale_y = screen_size.y / splash.bmap.height;

}

void main()
{
	//on calls
	on_close = quit;
	on_resize = painel_scale;
	on_mouse_right = mouse_toggle;
	on_d = debug;
		
	//parametros
	light_view = camera; // do not clip dynamic lights
	fps_max = 60; // limit the frame rate at 60 fps 
	
	//random
	random_seed(0);
	
	//efeitos pp_set(camera,mtl_blur); etc...
	pp_set(camera,mtl_erode);
	
	//Tela tamanho e modo
	screen_size.x = scala_x; 
        screen_size.y = scala_y;
        video_screen = TelaModo;
	screen_color.blue = 0;
	
	//detalhes de qualidade
	shadow_stencil = ShadowMode; //defalt 2
	d3d_anisotropy = AniStropy;
	d3d_antialias = AntiAlias;
        shadow_lod = ShadowLod; 
        stencil_blur(SBlur); 
  
  
  	//musica do level
	som_intro = media_loop("economy_03.wav",NULL,100);
	
  		wait(5);
  
  mouse_toggle();
  
  level_load("intro.WMB");
  
  wait(1);
  
  	while (1) 
	{
		
		vForce.x = -5*(key_force.x + mouse_force.x/2);	// pan angle
		vForce.y = 5*(key_force.y + mouse_force.y/2);	// tilt angle
		vForce.z = 0;	// roll angle
		vec_accelerate(vMove,vAngularSpeed,vForce,0.8);
		vec_add(camera.pan,vMove);	
		if(camera.pan < 100) {camera.pan=100;}//limitador	
		if(camera.pan > 130) {camera.pan=130;}//limitador	
		if(camera.tilt < -50) {camera.tilt=-50;}//limitador	
		if(camera.tilt > -20) {camera.tilt=-20;}//limitador		
		wait(1);

	}


}



it works fine here laugh

this is ok ?

BR


A8 PRO 8.47.1
Page 2 of 2 1 2

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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