Search found 49 matches

by bink
Mon Oct 24, 2011 7:04 am
Forum: Ren'Py Questions and Announcements
Topic: Screenshots?
Replies: 23
Views: 2591

Re: Screenshots?

photos is just a list of photos that were already taken. I defined it right after the start label begins:

Code: Select all

label start:
    $ photos = [] # initialize empty photo list
The code you're using to call it looks fine to me. Try adding the list and check if it works.
by bink
Wed Sep 28, 2011 5:07 am
Forum: Ren'Py Questions and Announcements
Topic: Avoiding 'Out of Memory' Crashes and Slow Performance
Replies: 12
Views: 1908

Re: Avoiding 'Out of Memory' Crashes and Slow Performance

Just curious... what kind of animation requires that many frames? Usually you need about 10 or maybe 20, not 200+. That's something you would expect from a modern fighting game with a large moveset for each character. Is this a 30 second long idle animation? Or is there something I'm misunderstandin...
by bink
Fri Sep 23, 2011 4:08 pm
Forum: Ren'Py Questions and Announcements
Topic: Getting assets out of games?
Replies: 6
Views: 664

Re: Getting assets out of games?

If you have a few hours of free time to understand and learn how to use it, git is your best friend. It can even let you jump back to a previous version, should you mess things up and you can keep a copy of your progress online too. github offers free repositories to do that. It's a must-have anyway...
by bink
Wed Sep 14, 2011 10:05 am
Forum: Ren'Py Questions and Announcements
Topic: If statements, the best way for my idea?
Replies: 7
Views: 899

Re: If statements, the best way for my idea?

That's really not a good way at all. If the programm contains a list of 100 words (which is not a lot), you'd have to write 100 check labels and 100 if-conditions, etc. You should instead use Pythons built-in dictionary class. An example would look like this: # first - in a init block, you can defin...
by bink
Tue Sep 13, 2011 6:15 pm
Forum: Ren'Py Questions and Announcements
Topic: User Customization (several questions)
Replies: 4
Views: 598

Re: User Customization (several questions)

1. How do I make certain items (e.g. wall color, a decoration) inaccessible until a certain level? Basically, you'll use a persistent flag. The full explanation is here: http://renpy.org/wiki/renpy/doc/cookbook/Changing_the_Main_Menu_after_completing_the_game You'll create a persistent flag at the ...
by bink
Mon Sep 12, 2011 3:06 pm
Forum: Ren'Py Questions and Announcements
Topic: [Resolved] ATL and transitions
Replies: 3
Views: 382

Re: ATL and transitions

You have to use it your image contains transparency. Function: Dissolve (time, old_widget=None, new_widget=None, alpha=False): This dissolves from the old scene to the new scene, by overlaying the new scene on top of the old scene and varying its alpha from 0 to 255. Dissolve only works correctly wh...
by bink
Mon Sep 12, 2011 2:51 pm
Forum: Ren'Py Questions and Announcements
Topic: [Resolved] ATL and transitions
Replies: 3
Views: 382

Re: ATL and transitions

Try this: image steamroll: "extras/sr1.png" with Dissolve(0.5, alpha=True) pause .5 "extras/sr2.png" with Dissolve(0.5, alpha=True) pause .5 "extras/sr3.png" with Dissolve(0.5, alpha=True) pause .5 "extras/sr4.png" with Dissolve(0.5, alpha=True) pause .5 repeat It should work.
by bink
Sun Sep 11, 2011 7:31 pm
Forum: Ren'Py Questions and Announcements
Topic: Seperating text into script files?
Replies: 3
Views: 351

Re: Seperating text into script files?

It's really something you should do to keep your project under control. It makes finding and editing things much easier. If you want some code to be in a different file, just create a new .rpy file and paste the code in. However, you can't have one half of a function or a label in one file and anoth...
by bink
Sat Sep 10, 2011 12:52 pm
Forum: Ren'Py Questions and Announcements
Topic: Can someone please explain kwargs?
Replies: 4
Views: 526

Re: Can someone please explain kwargs?

[quote="Aleema"]Hmm, as best as I can interpret (don't know what it is officially), it just means "put anything else here"./quote] That's pretty much it. *args stands for a list of arguments, **kwargs stands for keyword arguments. So you could do this: def testFunction(some_arg,**kwargs): print some...
by bink
Sat Sep 10, 2011 7:52 am
Forum: Ren'Py Questions and Announcements
Topic: Icon instead of character name
Replies: 3
Views: 428

Re: Icon instead of character name

Read this: http://www.renpy.org/doc/html/side_image.html
It contains instructions on how to use images like that and should clear things up a bit.
by bink
Fri Sep 09, 2011 3:39 pm
Forum: Ren'Py Questions and Announcements
Topic: Screenshots?
Replies: 23
Views: 2591

Re: Screenshots?

That code is awesome, and very useful! *_* Would it be ok for me to take it as well? :D And if yes, what are hashlib and os? ^^; (Please pardon my noobness. ^^; ) Sure, feel free to use it, I don't mind. As long as your game turns out to be awesome, that's fine. :P hashlib and os are Python modules...
by bink
Fri Sep 09, 2011 8:27 am
Forum: Ren'Py Questions and Announcements
Topic: Screenshots?
Replies: 23
Views: 2591

Re: Screenshots?

Here are the two most important functions for this, including comments on what every line does and why. I didn't include the functions that build the camera UI and everything. Didn't want this post to be two pages long, and you probably have your own ideas for those already. #This function is called...
by bink
Fri Sep 09, 2011 8:07 am
Forum: Ren'Py Questions and Announcements
Topic: Screenshots?
Replies: 23
Views: 2591

Re: Screenshots?

I wrote a camera function for a game before. The player can pick the camera item from their inventory and it will display a camera complete with a menu that contains images taken before and such. You can then take a photo and it will be saved for later use. Is that what you want it to do? I could sh...
by bink
Thu Sep 08, 2011 7:37 pm
Forum: Ren'Py Questions and Announcements
Topic: [Given up] ATL Loop
Replies: 7
Views: 622

Re: ATL Loop

To do that, you probably need two images on the screen at the same time. Or is the image you are using made up of three identical 800x600 images? If that is the case, it's all about figuring out the right numbers. If it isn't, you'll have to use two images and move them with the proper distance in b...
by bink
Thu Sep 08, 2011 6:17 pm
Forum: Ren'Py Questions and Announcements
Topic: [Given up] ATL Loop
Replies: 7
Views: 622

Re: ATL Loop

I don't understand what kind of effect you're going for here... could you elaborate?
Maybe it would help if you put up a picture of what you want it to look like?