Search found 132 matches

by Exiscoming
Sat Aug 29, 2020 10:35 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Allow movie to finish after keypress
Replies: 4
Views: 475

Re: Allow movie to finish after keypress

I can think of one way to do it, but it's maybe a bit messy. default movieStage = 1 image movieStage1 movie = Movie(play="eileen_movie1.webm") image movieStage2 movie = Movie(play="eileen_movie2.webm") screen animationButton: key "K_SPACE" action SetVariable("movie...
by Exiscoming
Sat Aug 29, 2020 9:29 am
Forum: Ren'Py Questions and Announcements
Topic: Disable TAB to skip [SOLVED]
Replies: 2
Views: 335

Disable TAB to skip [SOLVED]

I want to replace the TAB button with another function, so I'd like to disable the skip function it has by default. However, when trying this: init: $ config.keymap['dismiss'].remove('K_TAB') I get an error message telling me: ValueError: list.remove(x): x not in list The wiki says K_TAB should be t...
by Exiscoming
Tue Aug 11, 2020 11:58 am
Forum: Ren'Py Questions and Announcements
Topic: Hide images before calling a scene? [solved]
Replies: 2
Views: 293

Re: Hide images before calling a scene?

Thought as much. Thanks for letting me know. It's gonna save me a lot of work in the future.
by Exiscoming
Tue Aug 11, 2020 5:42 am
Forum: Ren'Py Questions and Announcements
Topic: Hide images before calling a scene? [solved]
Replies: 2
Views: 293

Hide images before calling a scene? [solved]

Let's say I got a scene with 3 characters displayed and I'd like to fade it to a black screen. I'd do something like this: hide image1 hide image2 hide image3 scene black with fade Will renpy automatically hide the images when calling a scene or will the images still be shown underneath the scene? B...
by Exiscoming
Tue Jun 02, 2020 6:40 am
Forum: Ren'Py Questions and Announcements
Topic: If statement if value is NOT in list [SOLVED]
Replies: 4
Views: 291

Re: If statement is value is NOT in list

Oh God, I'm stupid.

Code: Select all

if 4 not in list
Is code. haha, now I get it. Thank you!
by Exiscoming
Tue Jun 02, 2020 5:43 am
Forum: Ren'Py Questions and Announcements
Topic: If statement if value is NOT in list [SOLVED]
Replies: 4
Views: 291

Re: If statement is value is NOT in list

What should I call it? I was gonna call it an array, but python uses lists instead.
Basically I need to see if a number is inside an array. If it's not, then have something happens.
If that number 'is' inside the array, something else happens.
by Exiscoming
Tue Jun 02, 2020 5:24 am
Forum: Ren'Py Questions and Announcements
Topic: If statement if value is NOT in list [SOLVED]
Replies: 4
Views: 291

If statement if value is NOT in list [SOLVED]

How do I run code if a value is not inside a list?
Example:

Code: Select all

default list = [1,2,3,4]

label start:
	$ list.remove(4)
	if list.index(4) == False:			# <- this doesn't work
		"Four is not in the list."
by Exiscoming
Tue May 05, 2020 8:09 am
Forum: Ren'Py Questions and Announcements
Topic: Finding items in list [SOLVED]
Replies: 3
Views: 304

Re: Finding items in list

Thanks you guys! It's exactly what I needed.
by Exiscoming
Mon May 04, 2020 6:25 pm
Forum: Ren'Py Questions and Announcements
Topic: Finding items in list [SOLVED]
Replies: 3
Views: 304

Finding items in list [SOLVED]

Say I got a list like this: $ moveSlots = [1, 0, 0, 0, 0] Each list item being a location on the map. The player is represented by number 1 . So he'd be in position zero of the list. Now I'm looking for a script that can run through the list to determine where the player is standing. Right now it's ...
by Exiscoming
Sat May 02, 2020 11:35 am
Forum: Ren'Py Questions and Announcements
Topic: Get image position + linear xpos
Replies: 2
Views: 244

Re: Get image position + linear xpos [SOLVED]

Hey hell_oh_world, thanks for the reply! I've been working on it and I think I figured it out. So I didn't want to use a screen, because I wanted to animate the move. Instead I did the following. default moveSlots = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0] # Make a list of 10 locations to move default locatio...
by Exiscoming
Thu Apr 30, 2020 5:59 pm
Forum: Ren'Py Questions and Announcements
Topic: Get image position + linear xpos
Replies: 2
Views: 244

Get image position + linear xpos

I'm trying to move an image via a button. Each time you press the button, the image xpos moves 100. Here's a simplified version: image bob = "bob.png" # Define an image for bob. screen button: # Create a simple image button to make Bob move. vbox xalign 0.1 yalign 0.1: imagebutton: idle &q...
by Exiscoming
Fri Apr 03, 2020 8:29 am
Forum: Ren'Py Questions and Announcements
Topic: Animated layeredimage without repeat
Replies: 1
Views: 421

Animated layeredimage without repeat

So I asked this question a few days ago and got an answer, but I've run into a new problem. image enemy1: "enemy1.png" alpha 0.0 linear 1.0 alpha 1.0 repeat # <- The problem layeredimage battle: always: "background1.jpg" if enemy1 == 1: "enemy1" xalign 0.5 yalign 0.7 la...
by Exiscoming
Tue Mar 17, 2020 7:27 am
Forum: Ren'Py Questions and Announcements
Topic: Layeredimage animated outfits [solved]
Replies: 5
Views: 583

Re: Layeredimage animated outfits

shin.e.d wrote: Tue Mar 17, 2020 3:17 am You can put names of images you defined in the script into a "string" like this:

Code: Select all

layeredimage character:
    if outfit == 1:
        "testOutfit"
And the string "testOutfit" refers to the image that you defined with animations.
Yes! Works, thank you!
by Exiscoming
Mon Mar 16, 2020 5:58 pm
Forum: Ren'Py Questions and Announcements
Topic: Layeredimage animated outfits [solved]
Replies: 5
Views: 583

Re: Layeredimage animated outfits

Going to give this a small bump.
by Exiscoming
Sat Mar 14, 2020 6:25 am
Forum: Ren'Py Questions and Announcements
Topic: Layeredimage animated outfits [solved]
Replies: 5
Views: 583

Re: Layeredimage animated outfits

Hey gas,

Thanks for the reply! Can you give me an example of how to do this? I tried:

Code: Select all

layeredimage character:
    if outfit == 1:
        testOutfit
and

Code: Select all

layeredimage character:
    if outfit == 1:
        image testOutfit
But they just give error reports.