≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Desktop Resolution Changer CCB
Posted by:
(you are not logged in)
Enter the missing letter in: "Internati?nal"
(you are not logged in)
Text:
[quote][b][/b] wrote: You’re 100% right, I will update the CCB with ‘original/new resolution’ vars as soon as I find time. I’m doing a similar thing in my game ([url]https://www.ambiera.com/forum.php?t=7283[/url]) with window/fullscreen modes. I’m using ReShade and, since ReShade takes a few seconds to ‘regroup’ after switching window/fullscreen modes, I’ve added a small code that detects resolution changes. When user switches mode the ‘Please wait’ panel blocks screen-view for a few seconds so that ReShade ‘adjustments’ can’t be seen :) This is the code: [code]var screen_w = ccbGetScreenWidth(); if(screen_w != ccbGetCopperCubeVariable("screen_w_old")) {ccbSetSceneNodeProperty(ccbGetSceneNodeFromName("FullScreenWait"), "Visible", true); ccbSetCopperCubeVariable("screen_w_old", screen_w); ccbSetCopperCubeVariable("screen_switch", 1);} var screen_h = ccbGetScreenHeight(); if(screen_h != ccbGetCopperCubeVariable("screen_h_old")) {ccbSetSceneNodeProperty(ccbGetSceneNodeFromName("FullScreenWait"), "Visible", true); ccbSetCopperCubeVariable("screen_h_old", screen_h); ccbSetCopperCubeVariable("screen_switch", 1);}[/code]The main difference is that I know in what resolution my game always starts but similar thing could be done maybe like this: at the start of the game you pickup native resolution (get w/h of the game-window in fullscreen) and store it, after user clicks any close-the-game button you compare current with native and switch it back if they are different. The only problem left is if player closes the game from the window-frame or with Alt-F4, I haven’t seen any option in CC to execute actions in case of outside closing. Luckily I’m also using Construct 2 for starter-window so the resolution could be restored to native in case the starter detects that the main game-window has stopped being active.[/quote]
Possible Codes
Feature
Code
Link
[url] www.example.com [/url]
Bold
[b]bold text[/b]
Image
[img]http://www.example.com/image.jpg[/img]
Quote
[quote]quoted text[/quote]
Code
[code]source code[/code]
Emoticons
Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact