Search found 302 matches
- Tue Jan 25, 2022 11:13 am
- Forum: Ren'Py Questions and Announcements
- Topic: switch expression; no image tag associated with the speaking character?
- Replies: 2
- Views: 302
Re: switch expression; no image tag associated with the speaking character?
Hey, make sure you created a character, that is actually linked with the image tag you are using, e.g. define z = Character("Zephyr", ... , image="zeph") image zeph normal = "zephyr_normal.png" image zeph sad = "zephyr_sad.png" label start: show zeph normal z "Hey, I am normal Zephyr!" z sad "Hey, n...
- Tue Jan 25, 2022 7:46 am
- Forum: Ren'Py Questions and Announcements
- Topic: How to call function everytime the say screen is shown?
- Replies: 2
- Views: 301
Re: How to call function everytime the say screen is shown?
I tried something out, what you could do is the following, but there might be cases where it's not working properly, especially if you use "extend" stuff. So far, for every line of text your character is speaking, the function is only called once and the id is increasing. You could keep track of it ...
- Tue Jan 25, 2022 7:24 am
- Forum: Ren'Py Questions and Announcements
- Topic: How to call function everytime the say screen is shown?
- Replies: 2
- Views: 301
Re: How to call function everytime the say screen is shown?
I don't quite get your question. Inside a label the "add_message()" function will only be called once when you call it. What exactly is your goal here regarding the ID's and the function? If it's about setting the variable and calling the function without having the player to click first, you can do...
- Tue Jan 25, 2022 7:19 am
- Forum: Ren'Py Questions and Announcements
- Topic: How do you stop music from looping, without causing rollback to stop playing music, & ensure music plays after loading?
- Replies: 1
- Views: 255
Re: How do you stop music from looping, without causing rollback to stop playing music, & ensure music plays after loadi
I don't know about the rollback, but you could work around the loading problem by having a global variable keeping track of the current music. default background_music = "None" label after_load: if background_music != "None": play music background_music fadein 1.0 noloop return label start: $ backgr...
- Tue Jan 25, 2022 6:56 am
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved] Fade out main menu?
- Replies: 18
- Views: 554
Re: Fade out main menu?
You actually don't have to do much for it. Something like this should suffice:
Code: Select all
label start:
stop music fadeout 1.0
scene black
with Dissolve(1.0)
...
- Tue Jan 25, 2022 4:04 am
- Forum: Ren'Py Questions and Announcements
- Topic: [solved / fixed] Drag & Drop Overlap and Snap Function
- Replies: 1
- Views: 275
[solved / fixed] Drag & Drop Overlap and Snap Function
Hello, I played around with the Drag & Drop feature of Ren'py. https://www.renpy.org/dev-doc/html/drag_drop.html Consider some kind of basketball situation with a (draggable) Drag called "drag_ball" that you can drag around, and there is also a (droppable) Drag called "drop_net" where you can drop t...
- Sat May 08, 2021 9:06 am
- Forum: Ren'Py Questions and Announcements
- Topic: deleting all persistent data except the persistent on the savegame
- Replies: 9
- Views: 1053
Re: deleting all persistent data except the persistent on the savegame
yeah ur right, thats it but what about my unlocked chapter and secret routes or label and my achievement? i use persistent on that . it has any other way to make that except persistent? Maybe somebody should just tell you that renpy automatically saves every variable that is defined and changed wit...
- Sat May 08, 2021 8:54 am
- Forum: Ren'Py Questions and Announcements
- Topic: Difference between 'define', $ and 'default' and when to use which?
- Replies: 2
- Views: 722
Re: Difference between 'define', $ and 'default' and when to use which?
Maybe you are confused because you are familiar with PHP, but the symbol $ doesn't have to do anything with defining variables in renpy. It's just used for a single line of python code following. $ <some python code here in one line> is the same as python: <some python code here> <and even more pyth...
- Sun Mar 21, 2021 3:57 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Ren'Py 7.4.3 Released
- Replies: 11
- Views: 4143
Re: Ren'Py 7.4.3 Released
Maybe it's somehow related to my issue after updating to 7.4.x some time ago? We couldn't resolve it. What system are you on? Bug report: https://github.com/renpy/renpy/issues/2572 Oooh, it does seem like the same issue! :o I'm running on an old Linux Mint 17.3, with MATE 1.12.0 I've run the game t...
- Sun Mar 21, 2021 3:53 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved]Weird Micro Stuttering Issue
- Replies: 3
- Views: 415
Re: [Solved]Weird Micro Stuttering Issue
@Okapi
You can just use a "button" for invisible button areas, don't have to use a transparent image.
You can just use a "button" for invisible button areas, don't have to use a transparent image.
- Tue Mar 16, 2021 2:40 am
- Forum: Ren'Py Questions and Announcements
- Topic: Code is skipping to last label
- Replies: 4
- Views: 369
Re: Code is skipping to last label
An hint regarding using images in Renpy: You don't have to define images, but just put them into your ".../game/images" folder, e.g. "hoshi school smile.png" and "hoshi school upset.png". Renpy will automatically detect those images and assign variables (don't put _ between the words). In this case ...
- Mon Mar 15, 2021 5:55 am
- Forum: Ren'Py Questions and Announcements
- Topic: Ren'Py 7.4.3 Released
- Replies: 11
- Views: 4143
Re: Ren'Py 7.4.3 Released
I've also run into a little problem (not sure if this is the right place, but since it happened after I updated renpy today, I'm putting this here)! Maybe it's somehow related to my issue after updating to 7.4.x some time ago? We couldn't resolve it. What system are you on? Bug report: https://gith...
- Fri Mar 12, 2021 6:59 am
- Forum: Ren'Py Questions and Announcements
- Topic: How to blur background during conversations and choices?
- Replies: 5
- Views: 591
Re: How to blur background during conversations and choices?
You can create blurred versions of every image like this and use it with the standard show command: image eileen blurred = im.Blur("path/to/eileen.jpg", 1.5) For example, if you want to have a dynamic way to blur the background in every choice interaction in a scene you would need to keep track of w...
- Sun Mar 07, 2021 2:32 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Stats screen
- Replies: 2
- Views: 278
Re: Stats screen
Since you probably want to show an indication every time the player gains something (I have a similar screen in my project), you can do this (just a basic example): # create dictionary of possible stats with a name that also refers to the image name default stats = { 'Romance': 0, 'Hitpoints': 0 } #...
- Sun Mar 07, 2021 2:07 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Imagebutton action that rotates an image
- Replies: 7
- Views: 354
Re: Imagebutton action that rotates an image
Sorry, I forgot the quotes in my post and meant to reply to OP. I just meant that your example works fine for me while frankfrankstud states that the objects rotate sometimes. Also my "@" wasn't properly used.