Search found 2438 matches
- Sat Oct 08, 2016 1:27 am
- Forum: Ren'Py Questions and Announcements
- Topic: image over new gui
- Replies: 6
- Views: 869
Re: image over new gui
For the record, it does, but it's used in the context of python statements: $some_im = Animation("im1.png", 1.0, "im2.png", 1.0) screen ttest: add some_im #can't do this with image declare, if I'm not mistaken Actually you can do that: image some im: "im1.png" 1.0 &quo...
- Thu Oct 06, 2016 9:29 am
- Forum: Ren'Py Questions and Announcements
- Topic: Popup a menu and apply a transform to whatever's under it?
- Replies: 4
- Views: 1222
Re: Popup a menu and apply a transform to whatever's under i
One idea is to take a screenshot using renpy.screenshot, use resulting image as background and apply transform to it.
Not the most efficient way, but I am not sure if there is a way to get all currently displaying displayables.
Not the most efficient way, but I am not sure if there is a way to get all currently displaying displayables.
- Thu Oct 06, 2016 6:03 am
- Forum: Ren'Py Questions and Announcements
- Topic: [alternative found] set items in list from screen
- Replies: 6
- Views: 2323
Re: SetVariable('persistent.chardb[i][0]',-3) getting error!
In my experience, SetVariable does not work well with dictionaries, lists, object fields and anything else. And trying to choose one of dozen of data manipulation functions is annoying. So, I prefer to make python function which does what I want and call it with Function action. Something like that:...
- Tue Oct 04, 2016 2:40 am
- Forum: Ren'Py Questions and Announcements
- Topic: Sprites still shown after deleting Image Statements [SOLVED]
- Replies: 6
- Views: 960
Re: Sprites still shown after deleting Image Statements
IIRC RenPy scans game folder and automatically defines images from file names. So wolf.png will define image wolf. And due to how image tags work, trying to show image wolf 1 when it does not exist will show image wolf instead.
- Mon Oct 03, 2016 4:48 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Mac build error
- Replies: 1
- Views: 326
Re: Mac build error
Did you include font with your game distribution? If this font is Times New Roman font then non-windows machines might lack it. Mac OS IIRC uses different version of New Roman font.
- Mon Oct 03, 2016 3:27 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved] Centering text vertically?
- Replies: 2
- Views: 849
Re: Centering text vertically?
Check say_dialogue style. It is defined after say screen in screens.rpy . Default definition is: style say_dialogue: xpos gui.text_xpos xanchor gui.text_xalign xsize gui.text_width ypos gui.text_ypos text_align gui.text_xalign layout ("subtitle" if gui.text_xalign else "tex") You...
- Mon Oct 03, 2016 2:14 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Three questions on Renpy usage from a beginner.
- Replies: 5
- Views: 1182
Re: Three questions on Renpy usage from a beginner.
You are probably interested in navigation screen in screens.rpy It is where all buttons and logic for their display is defined. This screen is used both for main_menu screen and game_menu : one you get if you right-click when playing. You can add, delete and change buttons here. Here you can also fi...
- Sun Oct 02, 2016 1:43 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How to change default main menu (start load etc) buttons?
- Replies: 1
- Views: 325
Re: How to change default main menu (start load etc) buttons
This topic might help you: viewtopic.php?f=8&t=9812
- Fri Sep 30, 2016 6:56 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved] How to add button sounds?
- Replies: 7
- Views: 7511
Re: How to add button sounds?
There is also hover_sound style property.
By default main menu buttons are hidden in 'navigation' screen.
You can add 'hover_sound' and 'activate_sound' style properties to style 'navigation_button' defined below that screen.
By default main menu buttons are hidden in 'navigation' screen.
You can add 'hover_sound' and 'activate_sound' style properties to style 'navigation_button' defined below that screen.
- Fri Sep 30, 2016 5:41 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Remebring old saves and progress resets with boolean
- Replies: 6
- Views: 669
Re: Remebring old saves and progress resets with boolean
First of all I would initialize all flags at start anyway.
In your case it seems that if you do not ask about chocolate, it would not do anything about that variable, therefore it will retain whichever value it had before. If you would set it to False instead, you would not have this problem.
In your case it seems that if you do not ask about chocolate, it would not do anything about that variable, therefore it will retain whichever value it had before. If you would set it to False instead, you would not have this problem.
- Fri Sep 30, 2016 3:56 pm
- Forum: Ren'Py Questions and Announcements
- Topic: interactive images
- Replies: 5
- Views: 1484
Re: interactive images
Yes it does set position of image. You really want to read documentation: https://www.renpy.org/doc/html/
- Fri Sep 30, 2016 1:36 pm
- Forum: Ren'Py Questions and Announcements
- Topic: interactive images
- Replies: 5
- Views: 1484
Re: interactive images
A quick example: init python: buttons = ["images/red.png", "images/green.png", "images/blue.png"] button = buttons[0] def change_button(): global button global buttons buttons = buttons[1:] + buttons[:1] button = buttons[0] screen bb: imagebutton idle "[button]&quo...
- Fri Sep 30, 2016 12:52 pm
- Forum: Ren'Py Questions and Announcements
- Topic: interactive images
- Replies: 5
- Views: 1484
Re: interactive images
Nothing really hard about that. A bunch of buttons which will call a python function which will assign next displayable in list to currently displayed one. And a simple timer to change scenes/songs (and if there is a callback when track finishes playin, it is even easier) As for animations, you can ...
- Fri Sep 30, 2016 8:16 am
- Forum: Ren'Py Questions and Announcements
- Topic: Remebring old saves and progress resets with boolean
- Replies: 6
- Views: 669
Re: Remebring old saves and progress resets with boolean
how does this help with my new boolean crashing with old saves issue? Your old saves are probably crashing because your code tries to refer to nonexistent variable: it didn't exist at the time save was made, so there is no mention of it in save file. This code checks if variable exist and sets it t...
- Fri Sep 30, 2016 8:11 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] How to call 2 screens at once?
- Replies: 2
- Views: 483
Re: How to call 2 screens at once?
Did you try
Code: Select all
show screen gallerybg
show screen gallerypopup
#or call screen gallerypopup