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
4 registered members (TipmyPip, AndrewAMD, dBc, clonman), 18,621 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
screen_size.x and bmap_width(bmap) #220952
08/11/08 02:22
08/11/08 02:22
Joined: Aug 2006
Posts: 70
NJ
S
SirCamaris Offline OP
Junior Member
SirCamaris  Offline OP
Junior Member
S

Joined: Aug 2006
Posts: 70
NJ
I displayed screen_size.x in digits for a 800x600 panel. The result was 800 as to be expected. I'm not sure why it displays the same result when I switch to fullscreen mode.
I moved another panel one pixel at a time on this 800x600 panel "backround" by modifying the pos.x and pos.y values. However, when I switch to fullscreen mode, the movement is considerably "slower" due to an increase in pixels the panel has to move on the screen. I tried the following:
"movement_factor = (screen_size.x / bmap_width(bmap))^2;"
When screen_size.x is equal to bmap_width, the result is 1 when squared (one pixel). When screen_size.x is larger than bmap_width, squaring the result is larger than one. While this reconciles the problem somewhat, it is not completely accurate; the panel still moves 'slower' when in fullscreen mode. I need to find the precise width in pixels of a given monitor to obtain the correct "movement_factor"; screen_size.x when in fullscreen mode doesn't seem to give me the desired result.


Last edited by SirCamaris; 08/11/08 02:24.
Re: screen_size.x and bmap_width(bmap) [Re: SirCamaris] #220978
08/11/08 07:16
08/11/08 07:16
Joined: Jan 2007
Posts: 221
F
Fenriswolf Offline
Member
Fenriswolf  Offline
Member
F

Joined: Jan 2007
Posts: 221
Hello,

the decrease of movement speed is probably due to different frame rates.
Are you using time_step? Having a look at fps_max might help, too.

Re: screen_size.x and bmap_width(bmap) [Re: Fenriswolf] #220996
08/11/08 12:36
08/11/08 12:36
Joined: Oct 2004
Posts: 4,134
Netherlands
Joozey Offline
Expert
Joozey  Offline
Expert

Joined: Oct 2004
Posts: 4,134
Netherlands
If you press ctrl+F5 for fullscreen, you just go into fullscreen with 800x600 resolution. It's not adapting to your desktop's resolution. Press F5 to change resolution.


Click and join the 3dgs irc community!
Room: #3dgs
Re: screen_size.x and bmap_width(bmap) [Re: Fenriswolf] #221052
08/11/08 20:13
08/11/08 20:13
Joined: Aug 2006
Posts: 70
NJ
S
SirCamaris Offline OP
Junior Member
SirCamaris  Offline OP
Junior Member
S

Joined: Aug 2006
Posts: 70
NJ
Thankyou. I set fps_max and fps_min to the same value and for pos.x/y I did, pos.x += 1 / time_step; This gave me the desired result for both 800x600 and Fullscreen mode.


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