Search found 230 matches

by TellerFarsight
Sun Jun 03, 2018 10:48 am
Forum: Ren'Py Questions and Announcements
Topic: Linking screens for custom menu [SOLVED]
Replies: 6
Views: 305

Re: Linking screens for custom menu

Alright so here's what happened. I had *tag menu* in the code before posting this but that didn't change anything, but I think I got mixed up and didn't re-run the program after saving the new code. Anyway, it works now.
by TellerFarsight
Sun Jun 03, 2018 10:25 am
Forum: Ren'Py Questions and Announcements
Topic: Linking screens for custom menu [SOLVED]
Replies: 6
Views: 305

Linking screens for custom menu [SOLVED]

So I'd like some clarification on how game menus work. I'm making a menu that is a 3 page booklet, where there are buttons to flip pages. Here's some code I whipped up to do this. screen page1(): add "gui/page1.png" textbutton "Next Page" action ShowMenu("page2") ypos 650 xpos 1100 screen page2(): a...
by TellerFarsight
Sun May 27, 2018 10:00 am
Forum: Ren'Py Questions and Announcements
Topic: Condensing code for animated images
Replies: 1
Views: 138

Condensing code for animated images

So I have a lot of animations and have them organized so I can keep track of them all, but the code defining all the images is like 1000+ lines long. Is there a way to condense this? I DON'T mean something like flipping "right" images to get "left" images. They are unique images, and that wouldn't g...
by TellerFarsight
Mon May 21, 2018 10:29 am
Forum: Ren'Py Questions and Announcements
Topic: Character Beepy Voice with irregular pauses [SOLVED]
Replies: 2
Views: 190

Re: Character Beepy Voice with irregular pauses

Figured it out, if anyone wants to use this. It creates a playlist beforehand that is randomly populated with dots and dashes, and then plays that. The playlist is re-randomized before each use. def beeps(char): char.beeps = [] for x in range(10): char.beeps.append(renpy.random.choice(["audio/"+char...
by TellerFarsight
Mon May 21, 2018 8:31 am
Forum: Ren'Py Questions and Announcements
Topic: Character Beepy Voice with irregular pauses [SOLVED]
Replies: 2
Views: 190

Re: Character Beepy Voice with irregular pauses

Like if I can have it randomly choose between two different beep sounds, that would work perfectly. Is this something I can do? if event_name == "show_done": random: renpy.sound.play("audio/"+char.name+"dot.wav", loop="True") or renpy.sound.play("audio/"+char.name+"dash.wav", loop="True")
by TellerFarsight
Sun May 20, 2018 10:48 pm
Forum: Ren'Py Questions and Announcements
Topic: Character Beepy Voice with irregular pauses [SOLVED]
Replies: 2
Views: 190

Character Beepy Voice with irregular pauses [SOLVED]

So I'm doing this thing to make the characters have beepy voices. There's some more stuff in the callback, which is why there's no elif and such. def talking_stick(char, event_name, interact=True, **kwargs): if not interact: return if event_name == "show_done": renpy.sound.play("audio/"+char.name+"b...
by TellerFarsight
Fri May 18, 2018 8:06 am
Forum: Ren'Py Questions and Announcements
Topic: Ren'Py pause and time and such [SOLVED]
Replies: 19
Views: 1351

Re: Ren'Py pause and time and such

Oh, I wasn't really thinking of the skipping dialogue as a problem. I was using it to sort of get at the function and see how it worked. I'll have to look at it again now that I've switched back to xoffset to see if it's still a problem. For the character twice thing, I don't mean two "show expressi...
by TellerFarsight
Thu May 17, 2018 7:51 pm
Forum: Ren'Py Questions and Announcements
Topic: Ren'Py pause and time and such [SOLVED]
Replies: 19
Views: 1351

Re: Ren'Py pause and time and such

Okay, so so far it works fairly well... as long as I still *have* the original function with renpy.pause in it. There's some problem with using the "show expression" 2 times in a row for the same character, but if I have Diana.move() somewhere, and then show expression move(Diana,...), and then Dian...
by TellerFarsight
Thu May 17, 2018 7:23 pm
Forum: Ren'Py Questions and Announcements
Topic: Ren'Py pause and time and such [SOLVED]
Replies: 19
Views: 1351

Re: Ren'Py pause and time and such

For some reason that doesn't work. It does one cycle and then resets back to original position, and it just repeats the same step multiple times before stopping. The actual char.xpos does update, as indicated by the display I put in, but the character stays in the same place.
by TellerFarsight
Thu May 17, 2018 9:07 am
Forum: Ren'Py Questions and Announcements
Topic: Ren'Py pause and time and such [SOLVED]
Replies: 19
Views: 1351

Re: Ren'Py pause and time and such

I think there's a problem with the offset here, and I can't figure it out. I recorded a gif of what happens with this code. The character is supposed to walk to the right, stop, and then continue walking right. Instead what happens is she resets to the first position and walks again. The char.xpos v...
by TellerFarsight
Wed May 16, 2018 8:45 pm
Forum: Ren'Py Questions and Announcements
Topic: Ren'Py pause and time and such [SOLVED]
Replies: 19
Views: 1351

Re: Ren'Py pause and time and such

Ok. So. I've started on it and it looks like it's totally possible. # within a python block def cycleoff(trans, st, at): trans.xoffset -= 90 ### diana's walking stride length is 90 pixels, so I need to ### find a way to have this be changeable per character, ### or I'll have to just make multiple. t...
by TellerFarsight
Wed May 16, 2018 8:56 am
Forum: Ren'Py Questions and Announcements
Topic: Ren'Py pause and time and such [SOLVED]
Replies: 19
Views: 1351

Re: Ren'Py pause and time and such

What you're describing is what I originally did late last year when I started this project, but the result was a character that was "treadmilling," as in they did a walking animation and also slid across the screen but the movement didn't match the footfalls. This is often accepted with no problems ...
by TellerFarsight
Tue May 15, 2018 9:50 pm
Forum: Ren'Py Questions and Announcements
Topic: Ren'Py pause and time and such [SOLVED]
Replies: 19
Views: 1351

Re: Ren'Py pause and time and such

I did a quick little thing to try and test out what works and what doesn't, and I don't understand the problem. I wrote the error down there at the bottom. It's having issues with me trying to define "x" and "y" at the beginning, for some reason. transform move(char,type,endx,endy,zord): x = char.xp...
by TellerFarsight
Tue May 15, 2018 8:46 pm
Forum: Ren'Py Questions and Announcements
Topic: Ren'Py pause and time and such [SOLVED]
Replies: 19
Views: 1351

Re: Ren'Py pause and time and such

This is basically the code I'm using right now. Glad you responded when you did; I was just about to go down the rabbit hole of trying to pass a varaible to an image. I'm trying to do what I said before, putting essentially this function into a transform, but there were a few things I was confused a...
by TellerFarsight
Tue May 15, 2018 6:24 pm
Forum: Ren'Py Questions and Announcements
Topic: Ren'Py pause and time and such [SOLVED]
Replies: 19
Views: 1351

Re: Ren'Py pause and time and such

I'm using a python function to have characters walk to various places around the screen. Without really delving into the entire code, It basically shows a displayable animation of a character taking a step, and then shows it again one step forward. Repeat until they reached where they were trying to...