Search found 1264 matches

by JQuartz
Thu Dec 17, 2009 9:10 am
Forum: Ren'Py Questions and Announcements
Topic: Save and Load screen with a scrollbar
Replies: 4
Views: 787

Re: Save and Load screen with a scrollbar

I just don't know how to go about it. You need to make your own buttons and the load and save function like so: label start: call save "Game saved" call load label save: window hide scene navi with fade python hide: ui.side(('c', 'r',), xpos=250, ypos=150, spacing=5) vp = ui.viewport(draggable=True...
by JQuartz
Thu Dec 17, 2009 8:52 am
Forum: Ren'Py Questions and Announcements
Topic: Buttons as Images
Replies: 11
Views: 1277

Re: Buttons as Images

How do you make something like this using ui-imagebuttons init: $ image_b01unlocked=False label start: $ ui.imagemap("main_menu5.jpg", "main_menu4.jpg", [ (100, 100, 300, 400, "choice1"), (500, 100, 700, 400, "choice2") ]) if image_b01unlocked: $ ui.imagebutton("image1.png", "image1_hovered.png", c...
by JQuartz
Thu Dec 17, 2009 7:54 am
Forum: Ren'Py Questions and Announcements
Topic: Buttons as Images
Replies: 11
Views: 1277

Re: Buttons as Images

How can I display a button over an imagemap at the same time? Use ui.imagemap and ui.imagebutton like so: $ ui.imagemap("main_menu5.jpg", "main_menu4.jpg", [ (100, 100, 300, 400, "choice1"), (500, 100, 700, 400, "choice2") ]) $ ui.textbutton("Text", ui.returns("choice3"), xpos=0, ypos=100) #Replace...
by JQuartz
Tue Dec 15, 2009 11:25 pm
Forum: Ren'Py Questions and Announcements
Topic: Save and Load screen with a scrollbar
Replies: 4
Views: 787

Re: Save and Load screen with a scrollbar

My plan was to make the save screen look something like this: You could either use scrolling load save layout( http://www.renpy.org/wiki/renpy/doc/reference/functions/layout.scrolling_load_save ) and edit the styles or you should just make your own custom save load screen( http://www.renpy.org/wiki...
by JQuartz
Fri Dec 11, 2009 8:16 am
Forum: Ren'Py Questions and Announcements
Topic: Visible attraction points in dating game?
Replies: 14
Views: 1945

Re: Visible attraction points in dating game?

Much like health bars, except they increase or decrease depending on your attraction points for a certain character... You can use ui.bar overlay like so: init python: max_love=100 current_love=50 show_stats=False def stats_overlay(): if show_stats: ui.frame() ui.vbox() ui.text("Love meter") ui.bar...
by JQuartz
Tue Dec 08, 2009 9:51 pm
Forum: Ren'Py Questions and Announcements
Topic: separating save and load screens?
Replies: 5
Views: 507

Re: separating save and load screens?

is there a way to separate the save and load screens? It's already separated. They just look the same. If you want to make the two screens look different, you'll need to make your own custom load or save screen. You can read about making your own screen here (it's harder than using layouts): http:/...
by JQuartz
Tue Dec 08, 2009 9:43 pm
Forum: Ren'Py Questions and Announcements
Topic: Coding Money??
Replies: 22
Views: 2160

Re: Coding Money??

But, the thing is, I would like to have the current amount of gold you have shown in the upper right corner of the game. Any tips on how to fix this? Oh, and one should easily be able to hide it, in case some epic BG scenes were to be shown. Use overlay like so: init python: gold=10 show_money=Fals...
by JQuartz
Mon Dec 07, 2009 7:08 am
Forum: Ren'Py Questions and Announcements
Topic: Click-to-continue (updated)
Replies: 2
Views: 448

Re: Click-to-continue

Gumaster wrote:Is it possible to do this, and if so, how?
If you are using static ctc images, then you can just use {image} like so:

Code: Select all

    "This is line one{image=ctc.png}{w}{nw}" #The wait ctc would be removed so the {w} would not show any ctc
    "This is line one{fast}\nThis is line two"
by JQuartz
Sun Dec 06, 2009 2:33 am
Forum: Ren'Py Questions and Announcements
Topic: Changing the Ctrl key on the Keymap [solved]
Replies: 1
Views: 380

Re: Changing the Ctrl key on the Keymap

I'm not sure what code words I'm supposed to use make this work or if there are any. Well you could replace this part of the compile_event(which is in renpy/display/behavior.py): if part[0] == "alt": part.pop(0) rv += " and (ev.mod & %d)" % pygame.KMOD_ALT else: rv += " and not (ev.mod & %d)" % pyg...
by JQuartz
Sat Dec 05, 2009 3:54 am
Forum: Ren'Py Questions and Announcements
Topic: Positioning & customizing in-game menu
Replies: 5
Views: 649

Re: Positioning & customizing in-game menu

As far as I know, styles are static and cannot be changed dynamically, Yeah, I think so too. If you want to have a dynamically positioned menu, maybe you should use ui like so: init: $ menu_width=200 $ say_window_height=400 label start: $ ui.vbox(xpos=10, ypos=10) $ ui.frame(xminimum=menu_width, ym...
by JQuartz
Thu Nov 26, 2009 10:33 pm
Forum: Ren'Py Questions and Announcements
Topic: Transitions from imagemapped main menu
Replies: 5
Views: 711

Re: Transitions from imagemapped main menu

Is there a way to disable right clicking on the main menu temporarily? Use ui.keymap like so: label Nothingness: return label main_menu: scene main_menu $ ui.keymap(mouseup_3=ui.callsinnewcontext('Nothingness')) $ result = renpy.imagemap("main_menu5.jpg", "main_menu4.jpg", [ (100, 100, 300, 400, "p...
by JQuartz
Wed Nov 25, 2009 3:56 am
Forum: Ren'Py Questions and Announcements
Topic: Transitions from imagemapped main menu
Replies: 5
Views: 711

Re: Transitions from imagemapped main menu

So, I want to fade to white from the main menu. Try using a renpy.map in the main_menu block like so: init python: ## Transitions. ## Used when entering the game menu from the game. config.enter_transition = Fade(.5, 0, .5, color=(255, 255, 255, 255)) ## Used when exiting the game menu to the game....
by JQuartz
Thu Nov 19, 2009 9:20 am
Forum: Ren'Py Questions and Announcements
Topic: Can anyone tell me how to program statistics in a game?
Replies: 10
Views: 1198

Re: Can anyone tell me how to program statistics in a game?

Maybe you can tell me how use this? You should use the whole DSE framework. There's a tutorial for it here: http://www.renaigames.com/?p=57 But if you really want to use just the code you shown, you need to register the stats and then display it like so: label start: $ intelligence=25 #This is the ...
by JQuartz
Wed Nov 11, 2009 8:02 pm
Forum: Ren'Py Questions and Announcements
Topic: Cannot define a character...
Replies: 6
Views: 620

Re: Cannot define a character...

Sanehouse wrote:Any help is much appreciated.
Use:

Code: Select all

# Characters
$ n = Character('Narrator', color="#ff0000")