Search found 3093 matches

by Alex
Fri Jan 04, 2013 7:20 pm
Forum: Ren'Py Cookbook
Topic: Simple minigames (Screen Language only).
Replies: 130
Views: 114043

Re: Simple minigames (Screen Language only).

Fifteen game. ##### The game screen. screen fifteen_scr: ##### Timer. if timer_on: timer 1.0 action If(fifteen_timer > 0, [SetVariable("fifteen_timer", fifteen_timer-1), Return("smth")], Return("time_is_up") ) repeat True text str(fifteen_timer) xalign 0.1 yalign 0.1 #...
by Alex
Wed Jan 02, 2013 9:32 pm
Forum: Ren'Py Questions and Announcements
Topic: How do I make a scroll bar for text?
Replies: 1
Views: 366

Re: How do I make a scroll bar for text?

Here it's an example - http://lemmasoft.renai.us/forums/viewto ... 25#p242875
Or try to be more specific - for what text do you need to make a scrollbar?
by Alex
Sun Dec 30, 2012 12:52 pm
Forum: Ren'Py Questions and Announcements
Topic: What's wrong with this code?
Replies: 2
Views: 528

Re: What's wrong with this code?

You need to use side to position a viewport right and put all the texts inside a vbox . frame: side "c b r": area (50, 50, 400, 550) viewport id "ve" : mousewheel True vbox: text "Farm Inventory" text "Year [year] , Day [day] " bar value XScrollValue("ve&...
by Alex
Sun Dec 30, 2012 5:06 am
Forum: Ren'Py Questions and Announcements
Topic: Gift screen problem
Replies: 11
Views: 892

Re: Gift screen problem

That's ok - you've set the if-condition to show buttons when player has zero or more gifts (change ">= 0" to"> 0").
by Alex
Sat Dec 29, 2012 8:39 pm
Forum: Ren'Py Questions and Announcements
Topic: Gift screen problem
Replies: 11
Views: 892

Re: Gift screen problem

This would be

Code: Select all

        if flowers >= 0:
            textbutton "Here - take it..." action Return('give_flowers')
        if books >= 0:
            textbutton "Read this..." action Return('give_books')
        textbutton "Return" action Return('nothing')
by Alex
Sat Dec 29, 2012 7:15 pm
Forum: Ren'Py Questions and Announcements
Topic: Gift screen problem
Replies: 11
Views: 892

Re: Gift screen problem

You can use if / else inside the screens the usual way screen gift_1 : frame : has vbox if flowers >= 0: textbutton "Here - take it..." action Return('give') textbutton "No way!" action Return('hold') else: textbutton "Return" action Return('nothing')
by Alex
Sat Dec 29, 2012 1:04 pm
Forum: Ren'Py Questions and Announcements
Topic: Gift screen problem
Replies: 11
Views: 892

Re: Gift screen problem

When you <call> a screen it will be shown for player untill an interaction happened and screen could return a value. So, you need to make your textbutton return a value that could be used later. label label_name: "Give Marie Her Gift" : call screen gift_1 $ action = _return if action == 'g...
by Alex
Fri Dec 28, 2012 12:50 pm
Forum: Ren'Py Questions and Announcements
Topic: Hide layers at keypress
Replies: 9
Views: 1862

Re: Hide layers at keypress

You could make your GUI as a screen, then you'll be able to show/hide it with transforms.
by Alex
Fri Dec 28, 2012 11:43 am
Forum: Ren'Py Questions and Announcements
Topic: Hide layers at keypress
Replies: 9
Views: 1862

Re: Hide layers at keypress

You can do all the python stuff right inside the screen, also you'll need <renpy.restart_interaction()>. label start: $ layershown = True $ old_value = layershown show screen keyactivate show expression "eileen_happy.png" at center "You've created a new Ren'Py game." "Once y...
by Alex
Wed Dec 26, 2012 1:04 pm
Forum: General Discussion
Topic: LSF@10 Planning [was: Day counter on site...]
Replies: 55
Views: 5427

Re: Day counter on site...

RunicV wrote:I thought Py'Tom didn't pay the fees for hosting this forum or something, and that they were counting down to its annihilation date. XD
lol...))
by Alex
Wed Dec 26, 2012 12:51 pm
Forum: Development of Ren'Py
Topic: Changing font in namebox? [CLOSED]
Replies: 2
Views: 943

Re: Changing font in namebox?

You can set font while character declaration

Code: Select all

define s = Character('Sylvie', color="#c8ffc8", font="my_font.ttf")
http://www.renpy.org/doc/html/quickstar ... characters
http://www.renpy.org/doc/html/dialogue. ... er-objects
by Alex
Tue Dec 25, 2012 4:53 pm
Forum: Ren'Py Questions and Announcements
Topic: Jedit not working Even with Java installed?(solved!)
Replies: 8
Views: 806

Re: Jedit not working Even with Java installed?(not solved)

Try to launch JEdit itself (not from Ren'Py launcher) to see if it works at all, and then open your script files in it.
by Alex
Tue Dec 25, 2012 12:13 pm
Forum: Ren'Py Questions and Announcements
Topic: expected menuitem
Replies: 22
Views: 17796

Re: expected menuitem

I suppose it should look like

Code: Select all

menu:
    "Choice 1":
        scene bg cafe with dissolve
or something.

About blocks and indentation you can read there - http://www.renpy.org/wiki/renpy/FAQ#How ... _blocks.3F