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 Tue May 21, 2013 10:47 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  [ 3 posts ] 
Author Message
PostPosted: Fri Jun 22, 2012 5:41 pm 
Regular
User avatar

Joined: Sun Aug 01, 2010 1:21 pm
Posts: 137
I am trying to design the game menu in such a way that when you enter it, you first enter the navigation screen and from there enter other specific screens. Works great so far and also doesn't look too bad, but the problem I got is basically that I can't find any way to modify where specific screens return to when right-clicking.
The way I'd like it to work is that with the right click you enter the navigation where you choose in which screen you want to go. If you want to exit the menu, you need to go back twice, once to the navigation and then to the game.

Now, my question is - what is the function that sets where specific screens return to?

Thank you for your time.


Last edited by Samidarenina on Sat Jun 23, 2012 8:41 am, edited 1 time in total.

Top
 Profile Send private message  
 
PostPosted: Fri Jun 22, 2012 11:16 pm 
Veteran

Joined: Tue Jun 05, 2012 2:01 am
Posts: 374
Code:
screen myscreen:
    key "game_menu" action Notify("I overrode right-click")


Right-click is special; if you need it to do something other than toggle between "I'm in a menu" and "I'm not in any menus", you should just override it to do what you want.


Top
 Profile Send private message  
 
PostPosted: Sat Jun 23, 2012 8:39 am 
Regular
User avatar

Joined: Sun Aug 01, 2010 1:21 pm
Posts: 137
Ah yes, that's exactly what I've been looking for. Thanks a lot.


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

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: kirbysuperstar


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