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 Sun May 26, 2013 5:33 am

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  [ 10 posts ] 
Author Message
PostPosted: Thu Jun 16, 2011 3:14 pm 
Newbie
User avatar

Joined: Thu Jun 16, 2011 3:07 pm
Posts: 9
Completed: None Yet
Projects: Beastly Beauty (working title), Black Rose
I know it hasn't been very long, but I have another question! If you'll be so kind to answer, I saw this in the tutorial but I'm a complete Noob at coding and I was hoping if someone could give me an example of the code to help me understand. I tried to look in the tutorial game's script for it but I got lost in everything else.

I was wondering how to put a click indicator into the text area,

If I'm not being specific enough it's in the tutorial under the character object section the very last thing that is mentioned.

Hello, I'm completely new to this and I tried looking around but there's so much to look through that I got lost and my head spun. So I thought it may be easier to ask. I know this may be a really easy fix for those who have been around awhile so please indulge me.

I was wondering how you would make a menu veiwable in game. Like to have the save/load preferences there next to the text box? I know that you can right click but I would also like the buttons for people who don't know to right click. (I didn't in some of the first ren'py games I played and I felt the need to finish them in one sitting)

*edit*
Also If I may know... Is there a way to change the little Ren'py icon into something else? (the one with the girl in the hat)
old issue solved. :3


Last edited by Aijoran on Fri Jun 17, 2011 4:01 pm, edited 3 times in total.

Top
 Profile Send private message  
 
PostPosted: Thu Jun 16, 2011 3:47 pm 
Veteran
User avatar

Joined: Fri May 20, 2011 1:27 pm
Posts: 413
Completed: [KN] Saving Project: Blind? (Part One)
For a menu viewable in game with the save/load next to the textbox, do you mean something like this?
Attachment:
example.png
example.png [ 164.71 KiB | Viewed 320 times ]

Because if it is, this is the code:
Code:
init python:

    # Give us some space on the right side of the screen.
    style.window.right_padding = 100

    def toggle_skipping():
        config.skipping = not config.skipping

    show_button_game_menu = True

    def button_game_menu():
       
        if show_button_game_menu:

            # to save typing
            ccinc = renpy.curried_call_in_new_context

            ui.vbox(xpos=0.99, ypos=0.98, xanchor='right', yanchor='bottom')
            ui.textbutton("Skip", clicked=toggle_skipping, xminimum=80)
            ui.textbutton("Save", clicked=ccinc("_game_menu_save"), xminimum=80)
            ui.textbutton("Load", clicked=ccinc("_game_menu_load"), xminimum=80)
            ui.textbutton("Prefs", clicked=ccinc("_game_menu_preferences"), xminimum=80)
            ui.close()


    config.window_overlay_functions.append(button_game_menu)

Just copy and paste into the screens.rpy and adjust to your needs.

_________________
Projects:
WIP|[KN] Day Of Reckoning|
Completed|[KN] Saving Project Blind: Part One|[KN] Saving Project Blind: Part Two|[KN] Saving Project Blind: Final Part|
Is available to help with proof-reading (Grammar freak...) Maybe voice-acting in the near future x]


Top
 Profile Send private message  
 
PostPosted: Thu Jun 16, 2011 4:03 pm 
Regular
User avatar

Joined: Thu Feb 17, 2011 1:33 pm
Posts: 52
Aijoran wrote:
*edit*
Also If I may know... Is there a way to change the little Ren'py icon into something else? (the one with the girl in the hat)

Copy and paste this code into options.rpy under "##More customizations can go here.":
Code:
config.window_icon = "yourgameicon.png"

_________________
Image
I'm going to smile like nothing's wrong. Talk like everything's perfect, act like it’s all a dream and pretend it's not hurting me.


Top
 Profile Send private message  
 
PostPosted: Thu Jun 16, 2011 4:29 pm 
Newbie
User avatar

Joined: Thu Jun 16, 2011 3:07 pm
Posts: 9
Completed: None Yet
Projects: Beastly Beauty (working title), Black Rose
Thank you both of you!

and manga_otaku that's exactly what I meant. :3 as far as I know this is solved. I'll be sure to ask again if I run into any problems. ^.^


Top
 Profile Send private message  
 
PostPosted: Thu Jun 16, 2011 5:05 pm 
Veteran
User avatar

Joined: Fri May 20, 2011 1:27 pm
Posts: 413
Completed: [KN] Saving Project: Blind? (Part One)
No problemo :) Always happy to help xD

_________________
Projects:
WIP|[KN] Day Of Reckoning|
Completed|[KN] Saving Project Blind: Part One|[KN] Saving Project Blind: Part Two|[KN] Saving Project Blind: Final Part|
Is available to help with proof-reading (Grammar freak...) Maybe voice-acting in the near future x]


Top
 Profile Send private message  
 
PostPosted: Fri Jun 17, 2011 1:02 am 
Newbie
User avatar

Joined: Thu Jun 16, 2011 3:07 pm
Posts: 9
Completed: None Yet
Projects: Beastly Beauty (working title), Black Rose
I know it hasn't been very long, but I have another question! If you'll be so kind to answer, I saw this in the tutorial but I'm a complete Noob at coding and I was hoping if someone could give me an example of the code to help me understand. I tried to look in the tutorial game's script for it but I got lost in everything else.

I was wondering how to put a click indicator into the text area,

If I'm not being specific enough it's in the tutorial under the character object section the very last thing that is mentioned.


Top
 Profile Send private message  
 
PostPosted: Fri Jun 17, 2011 1:52 am 
Regular
User avatar

Joined: Sun Sep 06, 2009 6:54 am
Posts: 93
Something like this?
http://www.renpy.org/wiki/renpy/doc/ref ... /Character
Code:
    $ ectc = Character('Eileen', color=(200, 255, 200, 255),
                       ctc = anim.Blink("arrow.png"))


(code from that page, the bit you're interested in is the ctc one.)
>You may want to use different indicators for ctc and ctc_pause
>You may use other animations, including ones you define yourself

_________________
-Gumaster
There is no n.
http://electrofishstudios.wordpress.com/


Top
 Profile Send private message  
 
PostPosted: Fri Jun 17, 2011 2:37 am 
Newbie
User avatar

Joined: Thu Jun 16, 2011 3:07 pm
Posts: 9
Completed: None Yet
Projects: Beastly Beauty (working title), Black Rose
I think that's what I'm looking for but I can't seem to get it to work. I keep getting all kinds of different errors as I change it around trying to make it work. :S
I'm unsure of how to implement this code to make it work.


Top
 Profile Send private message  
 
PostPosted: Fri Jun 17, 2011 3:27 am 
Regular
User avatar

Joined: Sun Sep 06, 2009 6:54 am
Posts: 93
in that case, could you post up the code you're using and what error you're getting?

_________________
-Gumaster
There is no n.
http://electrofishstudios.wordpress.com/


Top
 Profile Send private message  
 
PostPosted: Fri Jun 17, 2011 4:00 pm 
Newbie
User avatar

Joined: Thu Jun 16, 2011 3:07 pm
Posts: 9
Completed: None Yet
Projects: Beastly Beauty (working title), Black Rose
After having a night's sleep I ended up figuring out the problem. D:
Seems I wasn't defining the character to have the symbol after it. With a rested mind I fixed it up and it works. :3 Thank you for your patience.


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

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users


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