Lemma Soft Forums

Supporting creators of visual novels and story-based games since 2003.


Visit our new games list, blog aggregator, IRC, and wiki.
Activation problem? Email [email protected]
It is currently Fri May 24, 2013 3:09 pm

All times are UTC - 5 hours [ DST ]


Forum rules


Ask questions about one topic per thread, and use a descriptive subject. "NotImplemented error in script.rpy" is a good subject, "Tom's problems" is not. Remember to include all of traceback.txt or error.txt when reporting a problem, as well as the relevant lines of script. Use the [code] tag to format scripts.



Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Thu Oct 11, 2012 10:34 am 
Regular
User avatar

Joined: Tue Oct 02, 2012 2:40 am
Posts: 101
Location: Canada
Projects: Chasing
Pretty simple question. I want to know if there is a code you can use that for whenever you launch the game it will open in the center of your screen, then you can drag it to where you want later.

As it is right now how the game opens annoys me. Every time I launch the game to test it, it opens on a different part of my screen every time, and sometimes part of the screen is cut off. I have a splash screen for when my game starts and it would be easier for the reader if it was centered, not in some weird location.

Thanks~

_________________
Image


Top
 Profile Send private message  
 
PostPosted: Thu Oct 11, 2012 10:40 am 
Eileen-Class Veteran
User avatar

Joined: Thu Oct 14, 2010 3:53 am
Posts: 1070
Location: NC, USA
Completed: Torrey & the Vampire, Faery Tale, Madaline's Missing Miscellany, Alchemical Ink, Yaoi Story, The Visitor, Erotic Story Generator, What Kind of Fiction Should YOU Write? (Quiz Game), Falling
Organization: Erotic Visions - VNs
XxrenxX wrote:
Pretty simple question. I want to know if there is a code you can use that for whenever you launch the game it will open in the center of your screen, then you can drag it to where you want later.

As it is right now how the game opens annoys me. Every time I launch the game to test it, it opens on a different part of my screen every time, and sometimes part of the screen is cut off. I have a splash screen for when my game starts and it would be easier for the reader if it was centered, not in some weird location.

Thanks~


In your options.rpy page, add this:

Code:
init -1 python hide:
    import os
    os.environ['SDL_VIDEO_CENTERED'] = '1'

_________________
Ookami Kasumi ~ Purveyor of fine Smut.
Erotic Visions ~ Visual Novels

"No amount of great animation will save a bad story." -- John Lasseter of Pixar


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: Anibal


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Protected by Anti-Spam ACP
Powered by phpBB® Forum Software © phpBB Group