Search found 1457 matches
- Wed Jul 10, 2019 11:32 am
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved] Any example for creating a battle log on the screen?
- Replies: 4
- Views: 527
Re: Any example for creating a battle log on the screen?
You can try this (not tested): default histo = [] init python: def log(txt): histo.append(txt) renpy.hide_screen("myhistory") renpy.show_screen("myhistory") screen myhistory(): viewport: mousewheel True draggable True scrollbars "vertical" yinitial 1.0 vbox: null height 10 for i in histo: text i lab...
- Mon Jul 08, 2019 5:36 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved] "If statement" + adding imagebutton to a screen?
- Replies: 2
- Views: 446
Re: "If statement" + adding imagebutton to a screen?
You can use "if" inside a screen. With a boolean variable it should be easy: default has_phone = False screen somescreen(): vbox: textbutton "Some button" action NullAction() if has_phone: # <-- You can use "if" here. textbutton "Phone" action NullAction() label start: show screen somescreen menu: "...
- Fri Jun 28, 2019 10:58 am
- Forum: Ren'Py Questions and Announcements
- Topic: [solved] Apply zorder to image?
- Replies: 5
- Views: 566
Re: apply zorder to image?
Have you tried this?
https://www.renpy.org/doc/html/displayi ... ght=zorder
EDIT (it doesn't):
Never tried this, maybe it works:
image primadona:
"primadonna.png"
zorder 999
Code: Select all
show myimagewithprimadonnacomplex zorder 999EDIT (it doesn't):
image primadona:
"primadonna.png"
zorder 999
- Fri Jun 28, 2019 8:57 am
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved] Default image not found?
- Replies: 7
- Views: 699
Re: Default image not found?
The line show bedroomgame can't work because bedroomgame is not an image.
Use: and tell us what error are you getting.
You are using the name "drag" for another screen, but the word "drag" is used inside renpy. Maybe that's conflicting something.
Use:
Code: Select all
show expression bedroomgameYou are using the name "drag" for another screen, but the word "drag" is used inside renpy. Maybe that's conflicting something.
- Fri Jun 28, 2019 6:37 am
- Forum: Ren'Py Questions and Announcements
- Topic: How to set up a layered image map
- Replies: 3
- Views: 646
Re: How to set up a layered image map
You can use the action SensitiveIf() to control which hotspots are active and which ones are disabled: https://www.renpy.org/doc/html/screen_actions.html#SensitiveIf default var = 1 screen test5(): imagemap: ground Solid("#880", xysize=(310,110)) idle Solid("#ff0", xysize=(310,110)) hover Solid("#80...
- Fri Jun 28, 2019 5:55 am
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved] Default image not found?
- Replies: 7
- Views: 699
Re: Default image not found?
In your code, the name of the image is tv1 . But television is a variable that contains the string "tv1" (that's a simple string, not the image itself). In your screen: the line add "television" is telling renpy to add the image named television but there is no such image. Try without the quotes: ad...
- Wed Jun 26, 2019 9:05 am
- Forum: Creator Discussion
- Topic: A multiplayer visual novel/dating sim
- Replies: 6
- Views: 3059
Re: A multiplayer visual novel/dating sim
Three years later, there are any new ideas on this? I'm interested.
- Fri Jun 21, 2019 10:21 am
- Forum: Ren'Py Questions and Announcements
- Topic: How to flip images?
- Replies: 7
- Views: 1075
Re: How to flip images?
For the very, very fussy: Note that flipping the image of a person that has clothes with buttons on it will change the normal orientation of the buttons. (or has a scar,a tattoo, or a single earring, or any non-symmetrical feature). I'd never thought about it until an artist pointed it out in this f...
- Fri Jun 21, 2019 5:11 am
- Forum: Ren'Py Questions and Announcements
- Topic: Creating an 'active' clock?
- Replies: 3
- Views: 786
Re: Creating an 'active' clock?
If I understand it correctly, you want a time counter running in the back independently of the actual story you are telling . It's doable, but I'd advise against it.The reason: every player has a different reading speed, your story will change according to that; I think it doesn't really make sense ...
- Fri Jun 21, 2019 4:56 am
- Forum: Ren'Py Questions and Announcements
- Topic: Noob's question about a math game
- Replies: 3
- Views: 738
Re: Noob's question about a math game
Don't put the random and variables part inside an "init" block ("init" means that it will be executed only once, at init time).
Put the random and variables inside a label, and call that label every time you want fresh numbers.
Put the random and variables inside a label, and call that label every time you want fresh numbers.
- Fri Jun 21, 2019 4:52 am
- Forum: Ren'Py Cookbook
- Topic: Affection Points
- Replies: 25
- Views: 23234
Re: Affection Points
Is there a way to max the affection points? So if I keep on adding affection and want to max it at 30 or 100 is there a way to do so? You can use the min() function. If you add points this way: $ points += 1 there is no max limit. If you add points this way: $ points = min(100, points + 1) it will ...
- Fri Jun 21, 2019 4:50 am
- Forum: Ren'Py Cookbook
- Topic: Affection Points
- Replies: 25
- Views: 23234
Re: Affection Points
Yes, before your "label start:" type this: init -2 python: Player_affection = 0 max_affection= 100 This start with 0 points. And set max points to 100. You can change both values how you like. Sorry to correct you. Better use "default" to avoid problems with saves: default Player_affection = 0 defa...
- Sun Jun 09, 2019 4:37 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Tutorial on "Status Bars"?
- Replies: 5
- Views: 875
Re: Tutorial on "Status Bars"?
If I may... I think Per K Grok's code is not totally correct. :oops: - It doesn't use a "bar" at all, but creates a rectangle. The "bar" element of screens has a lot of functionality already included, better use that. https://renpy.org/doc/html/screens.html#bar - It uses a "show screen" and a hard i...
- Sun Jun 09, 2019 4:46 am
- Forum: Ren'Py Questions and Announcements
- Topic: Tutorial on "Status Bars"?
- Replies: 5
- Views: 875
Re: Tutorial on "Status Bars"?
Are you asking about looks or programming?
You need to learn screen language and put "bars" into a screen. Every bar informs about a variable. (I guess you know what a variable is, if not, feel free to ask).
It IS pro. https://en.wikipedia.org/wiki/Celso_Riva
You need to learn screen language and put "bars" into a screen. Every bar informs about a variable. (I guess you know what a variable is, if not, feel free to ask).
- Sat May 18, 2019 1:52 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved] Having text show up on a imagebutton hover
- Replies: 5
- Views: 390
Re: [Solved] Having text show up on a imagebutton hover
Put the rotate inside a transform and apply the transform to the text with "at".
Note that positioning the rotations is tricky. Probably you'll need "rotate_pad True" in that transform
Note that positioning the rotations is tricky. Probably you'll need "rotate_pad True" in that transform