Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (Ayumi, AndrewAMD, TedMar), 1,016 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 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 | 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