Search found 54 matches

by QotC
Fri Aug 12, 2011 1:04 am
Forum: Ren'Py Questions and Announcements
Topic: Show Python Function At Right? [Solved]
Replies: 2
Views: 713

Show Python Function At Right? [Solved]

So, I managed to make buttons that allow you to turn to the right or the left: def rb(place, active = True): active = active place = place if active == True: ui.imagebutton("button_right.PNG", "button_right.PNG", clicked = ui.jumps(place)) def lb(place, active = True): active = a...
by QotC
Wed Aug 10, 2011 8:50 pm
Forum: Ren'Py Questions and Announcements
Topic: Random Label Problem
Replies: 5
Views: 738

Re: Random Label Problem

^You'll want an 'else' in there, I think. init: $ location_one_seen = False # sets the variable value $ location_two_seen = False # etc. label location_one: if not location_one_seen: # checks the value $ location_one_seen = True # changes the value "Detailed explanation" "And even mor...
by QotC
Fri Aug 05, 2011 7:11 pm
Forum: Ren'Py Questions and Announcements
Topic: i do not understand imagemaps
Replies: 15
Views: 2354

Re: i do not understand imagemaps

That's because "foo" isn't a real computery-thing; it's only a placeholder word I threw in to give an example of what the code could do. You can delete everything between the [brackets], if you like, and fill them with your own code. Or, you can define all the labels and objects listed, an...
by QotC
Thu Aug 04, 2011 1:09 pm
Forum: Ren'Py Questions and Announcements
Topic: Trying to position an image and it seems to be cropping it!
Replies: 7
Views: 1716

Re: Trying to position an image and it seems to be cropping

I recently had a similar issue. If my understanding is right, Renpy doesn't automatically resize images to fit the screen, so you have to either change the size of the image itself or explicitly use a transformy-function thingy. Personally, I just went with changing the image size; most image softwa...
by QotC
Wed Aug 03, 2011 5:58 pm
Forum: Ren'Py Questions and Announcements
Topic: i do not understand imagemaps
Replies: 15
Views: 2354

Re: i do not understand imagemaps

Like Alex said, you need to indent it. Right before the imagemap: , put 4 spaces or so. Renpy is very picky about indentation.
by QotC
Wed Aug 03, 2011 4:13 pm
Forum: Ren'Py Questions and Announcements
Topic: i do not understand imagemaps
Replies: 15
Views: 2354

Re: i do not understand imagemaps

Hmmm...Okay, this is the part I'm less certain about, but you can give it a try: Try putting the imagemap in a screen. screen my_imagemap: imagemap: #more code goes here Then, whereever in the script you want the imagemap to show up, call the screen. label day_off: "Where shall I go on my day o...
by QotC
Wed Aug 03, 2011 2:01 pm
Forum: Ren'Py Questions and Announcements
Topic: i do not understand imagemaps
Replies: 15
Views: 2354

Re: i do not understand imagemaps

Ugh, I hate those kind of errors. Could you paste some of your code? What's right before imagemap:, and what's right after it?
by QotC
Wed Aug 03, 2011 1:58 pm
Forum: Ren'Py Questions and Announcements
Topic: Can Imagemaps be used as checklists? [SOLVED]
Replies: 12
Views: 3383

Re: Can Imagemaps be used as checklists?

Okay, finally got the missing piece to this puzzle: I wasn't initially aware that there were other things besides "ground" and "hover"; after digging further into the renpy documentation, I discovered selected_hover and selected_somethingelseiforgetwhat, and defined them in my im...
by QotC
Tue Aug 02, 2011 9:25 pm
Forum: Ren'Py Questions and Announcements
Topic: i do not understand imagemaps
Replies: 15
Views: 2354

Re: i do not understand imagemaps

Funnily enough, I happen to be learning about them myself; maybe I can be of some service. :) First of all: Try running your code without any imagemaps in it, just to make sure the error isn't about something else. Sometimes I'll edit a piece of new code several zmillion times before I realize that ...
by QotC
Mon Aug 01, 2011 11:58 pm
Forum: Ren'Py Questions and Announcements
Topic: Can Imagemaps be used as checklists? [SOLVED]
Replies: 12
Views: 3383

Re: Can Imagemaps be used as checklists?

Oh, blah. SetVariable takes a string as the first argument. So you'd want to do SetVariable("chosen", lehol), and keep the rest the same. ...It...does??? :shock: Aw man, I don't know whether to laugh or cry. :lol: Thanks, PyTom! My code is functioning again. However, after all that, the n...
by QotC
Mon Aug 01, 2011 12:42 pm
Forum: Ren'Py Questions and Announcements
Topic: Can Imagemaps be used as checklists? [SOLVED]
Replies: 12
Views: 3383

Re: Can Imagemaps be used as checklists?

It says: '' ....That's all it says. o_O For the record, I do initially set $chosen as " " before it's assigned an actual value, but that's only because it won't let me list it as None. For the record, here's the traceback when I try to start with a value of None: I'm sorry, but an uncaught...
by QotC
Sun Jul 31, 2011 10:55 pm
Forum: Ren'Py Questions and Announcements
Topic: Can Imagemaps be used as checklists? [SOLVED]
Replies: 12
Views: 3383

Re: Can Imagemaps be used as checklists?

Thanks. I know it's very basic, but I haven't had to define actions in Python before. I'm not sure, but I think the call function is what's tripping me up. I could be mistaken. Call assumes that there's a string involved, right? o_O When I started out, I made a Country object so that I could randomi...
by QotC
Sun Jul 31, 2011 4:05 pm
Forum: Ren'Py Questions and Announcements
Topic: Can Imagemaps be used as checklists? [SOLVED]
Replies: 12
Views: 3383

Re: Can Imagemaps be used as checklists?

Hey, PyTom? I know you must be very busy, but would you mind walking me through the code? Yknow, how all the parts work and what they do? I'm having difficulty splicing it into the code I was already working with, and while building new code around it might work, I'd rather understand what the under...