Search found 446 matches

by Anima
Mon Jan 05, 2015 9:07 am
Forum: Ren'Py Questions and Announcements
Topic: Designing screens
Replies: 7
Views: 1275

Re: Designing screens

You can nest a hbox into a vbox to combine a row with a column layout.
by Anima
Mon Oct 06, 2014 1:52 pm
Forum: Development of Ren'Py
Topic: Mac retina issues
Replies: 11
Views: 3176

Re: Mac retina issues

That's what you have minions for, isn't it? :wink:
by Anima
Mon Oct 06, 2014 1:45 pm
Forum: Development of Ren'Py
Topic: Mac retina issues
Replies: 11
Views: 3176

Re: Mac retina issues

by Anima
Thu Sep 25, 2014 9:56 am
Forum: Ren'Py Questions and Announcements
Topic: Multiple Conditional Statements and Variables
Replies: 7
Views: 9216

Re: Multiple Conditional Statements and Variables

The problem is this line: $ boxoffice == "true" That's an equality check, an assignment is done with a single =: $ boxoffice = "true" In addition you can use python truth values for these instead of strings. The full corrected code would be: label boxoffice: if not lights: scene ...
by Anima
Thu Sep 25, 2014 6:12 am
Forum: Ren'Py Questions and Announcements
Topic: Multiple Conditional Statements and Variables
Replies: 7
Views: 9216

Re: Multiple Conditional Statements and Variables

The lights variable is probably either "on" or "off". So you never reach the third if statement since you jump to lobbymenu in either of the first two blocks.
You need to put the jump after the if statements.
by Anima
Tue Apr 15, 2014 12:12 pm
Forum: Ren'Py Questions and Announcements
Topic: Some things disappear when loading a saved game >.<
Replies: 3
Views: 541

Re: Some things disappear when loading a saved game >.<

You need to define the characters in the start instead of an init block.
by Anima
Thu Mar 13, 2014 1:08 pm
Forum: Ren'Py Questions and Announcements
Topic: I think I broke the Save function... [SOLVED]
Replies: 24
Views: 2780

Re: I think I broke the Save function...

While I would recommend a complete rewrite, the whole things one big mess, it should be enough to replace the jump to dressednow with a return statement. But you should seriously consider tidying up your script. Screen declarations shouldn't be in the middle of the script, loops should actually be d...
by Anima
Thu Mar 13, 2014 10:32 am
Forum: Ren'Py Questions and Announcements
Topic: I think I broke the Save function... [SOLVED]
Replies: 24
Views: 2780

Re: I think I broke the Save function...

The return was correct, the jumps are the problem. You should never mix jumping and calling.
by Anima
Thu Mar 13, 2014 9:23 am
Forum: Ren'Py Questions and Announcements
Topic: I think I broke the Save function... [SOLVED]
Replies: 24
Views: 2780

Re: I think I broke the Save function...

You never reach the return in the called label, every time you jump out of it. That's why the control flow never returns to the main context.
by Anima
Wed Feb 26, 2014 2:50 pm
Forum: Ren'Py Cookbook
Topic: Getting started and "common" mistakes in Renpy
Replies: 10
Views: 19156

Re: Getting started and "common" mistakes in Renpy

(from Scenes.rpy) label BD1: # BD1 Content return label R1: # R1 Content return label CD1: # CD1 Content return (from Script.rpy) label start: menu: "Option BD1": call BD1 "Option R1": call R1 "Option CD1": call CD1 return EDIT: Seems that the forums don't want to leav...
by Anima
Wed Feb 12, 2014 4:38 pm
Forum: Ren'Py Questions and Announcements
Topic: SOLVED How to terminate a screen without it returning tomenu
Replies: 3
Views: 343

Re: SOLVED How to terminate a screen without it returning to

Return is used when you called the screen, you use Hide when you merely show it.
That's because return returns control to the caller.
by Anima
Sat Feb 01, 2014 1:58 pm
Forum: Ren'Py Questions and Announcements
Topic: Best way to sort a list?
Replies: 19
Views: 7422

Re: Best way to sort a list?

The sorted function returns a list anyway, so I don't see the problem. You can simply convert whatever you want to sort into a list first.
by Anima
Sat Feb 01, 2014 12:43 pm
Forum: Ren'Py Questions and Announcements
Topic: Can't save after a certain point [solved]
Replies: 5
Views: 620

Re: Can't save after a certain point [solved]

Glad you could pick it up from there.
You should take a look at the tag system as well. Should spare you all those hide actions.
by Anima
Sat Feb 01, 2014 12:35 pm
Forum: Ren'Py Questions and Announcements
Topic: Best way to sort a list?
Replies: 19
Views: 7422

Re: Best way to sort a list?

But without sorting containers this is not even remotely useful to me, even with containers, I run most of my game logic from python classes and very rarely use any variables in store save the reference to instances of those classes. You know I don't have the slightest idea what you're trying to sa...