Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Sprite Not showing if in full screen mode

Author
Message
FIGHTEX
15
Years of Service
User Offline
Joined: 30th Nov 2008
Location:
Posted: 3rd Mar 2009 17:02
I got a problem.
if i try to go to full screen or use dbSetDisplayMode i cant see my sprite.




if i use any picture its the sain(i tryed 2)
i ve have someproblems with this before
but then i fixed it with adding dbSetDisplayMode.
also i tryed reinsatling The GDK, didnt work.:S

help plis.

Game.Love
FIGHTEX
15
Years of Service
User Offline
Joined: 30th Nov 2008
Location:
Posted: 3rd Mar 2009 17:12
No matter, got it working
it was the
dbSyncRate(60); line
it hast to be set to 0(senc is off)

Game.Love
Diggsey
18
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 3rd Mar 2009 18:44
@FIGHTEX
A sync rate of 0 does not turn sync off... It just lets it go as fast as possible.

Your problem is this:
When you use dbSetDisplayMode, or change the sync rate in fullscreen exclusive mode, the directx device is momentarily lost, and this causes all your images to be unloaded. To solve it, load the images in AFTER setting the display mode.

[b]Yuor signutare was aresed by a deslyxic mud...
BOX2D V2 HAS HELP FILES! AND A WIKI!
FIGHTEX
15
Years of Service
User Offline
Joined: 30th Nov 2008
Location:
Posted: 3rd Mar 2009 18:46
thnx, and the sync is off
i turned it off with
dbSyncOff()
but thnx.

Game.Love
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 3rd Mar 2009 22:36
You switched between windowed mode and fullscreen mode after loading your images - the images (and any models) are lost when you do that or when you change resolution.



Login to post a reply

Server time is: 2024-09-30 19:30:15
Your offset time is: 2024-09-30 19:30:15