The Daily Click ::. Forums ::. Klik Coding Help ::. Major Display Properties Object Problem in TGF. Help or altrenatives please...
 

Post Reply  Post Oekaki 
 

Posted By Message

Giga-Guy



Registered
  11/12/2004
Points
  33
22nd March, 2005 at 03:53:50 -

Ive got TGF and the Display properties object. I wanna make my game change the users resolution so that the game can have a proper full screen option. But, when I try to make an event that changes the resolution, (eg: 'Change resolution to 512 x 384'), I get a windows error: 'The Games Factory has encountered a problem and needs to close. We are sorry for the inconvenience.' Is there anyway I can avoid this error? Or any alternative ways of having perfect full screen?
BTW, I have Display properties object v1.2. Will that help find an answer? Is it out dated?

 
-coming soon-

Destroyer (CrobaSoft)



Registered
  10/10/2004
Points
  1106
22nd March, 2005 at 07:36:20 -

you have to create the DD object before you can change the resolution. and also have an event
end of application
---> destroy DD object

 
Visit www.crobasoft.com or you're a Noob.

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14560

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
22nd March, 2005 at 12:17:56 -

get the window object as well for proper fullscreen (in a cheeky way)


first of all make you game resolution 320x240 or 640x480 (as this fits the native monitor resolution well (all the lines will be the same size.)

choose to resize window to fullscreen (in game setup)

then in the event editor using the window object, make the client size 640x480.
then below that in the events (using display properties) create dd and set screen to 640x480.
not forgetting to have a destroy dd object when quitting.

it helps to use a blank frame for this and quickly change the level so the screen will be centered.

hey presto fullscreen!! It may be go a bit slow on some PCs.


 
.
   

Post Reply



 



Advertisement

Worth A Click