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
0 registered members (), 18,561 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
Video mode toggle help #315056
03/12/10 23:49
03/12/10 23:49
Joined: Jan 2010
Posts: 145
Doc_Savage Offline OP
Member
Doc_Savage  Offline OP
Member

Joined: Jan 2010
Posts: 145
im working on a script to change the video mode from fullscreen to windowed, and back via a keystroke. just having a bit of trouble, when i hit the key i can see my player model as if im inside it. nothing else happens.

here is the script:

function videomode(){
if(key_0){
video_screen=0;
}
}


i already have the variable for video_screen in the script, so thats not the problem.. any ideas guys?


Do not concern yourself with my race, personality or origin. find my record in the pits, and then make your wager.
Re: Video mode toggle help [Re: Doc_Savage] #315062
03/13/10 01:21
03/13/10 01:21
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
I don`t know how do you call the function videomode. You call it in a while(1) loop? if not, set the while(1) loop in the function videomode itself.

Re: Video mode toggle help [Re: Widi] #315069
03/13/10 03:26
03/13/10 03:26
Joined: Jan 2010
Posts: 145
Doc_Savage Offline OP
Member
Doc_Savage  Offline OP
Member

Joined: Jan 2010
Posts: 145
OH, ok let me try that thank you.

i tried it, it does the same thing. its ok i guess, i wanted to be able to set the video with something other than alt + enter, that way i could apply it to the menu im going to make for it.

Last edited by Doc_Savage; 03/13/10 03:33.

Do not concern yourself with my race, personality or origin. find my record in the pits, and then make your wager.
Re: Video mode toggle help [Re: Doc_Savage] #315188
03/13/10 18:54
03/13/10 18:54
Joined: Sep 2003
Posts: 733
Whitefish, Montana
JazzDude Offline
User
JazzDude  Offline
User

Joined: Sep 2003
Posts: 733
Whitefish, Montana
This works for me.

Code:
function set_screen() //put this on a menu button
{
		resolution.visible = on; //background panel
		resolution_txt.visible = on; //explanation
}



var screen_change;
Function set_window() //will toggle between window and full
{
	if(screen_change == 0)
	{
		screen_change = 1;
		video_set(1024,768,0,0); //change for size
		video_switch (8, 32, 2); //change depth, mode
		resolution.visible = off;
		resolution_txt.visible = off;
		
	}
	else
	{
		screen_change = 0;
		video_switch (8, 32, 1);
		resolution.visible = off;
		resolution_txt.visible = off;
		
	}
	
}



Make the mouse visible during the resolution panel.


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