Search found 737 matches
- Sat Apr 27, 2024 7:20 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How to use functions defined inside screen?
- Replies: 4
- Views: 133
Re: How to use functions defined inside screen?
That's funny. I always imagined screens to behave like classes in that regard, so that I *can* define local functions that exist in the namespace of that screen only; and I'm sure I already used this to have small specialized functions there, probably small and straightforward enough (like a pythago...
- Sat Apr 27, 2024 5:33 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How to use functions defined inside screen?
- Replies: 4
- Views: 133
Re: How to use functions defined inside screen?
Not that I don't believe you, but why is it then that the callback function works?
- Sat Apr 27, 2024 6:50 am
- Forum: Ren'Py Questions and Announcements
- Topic: How to use functions defined inside screen?
- Replies: 4
- Views: 133
How to use functions defined inside screen?
How can I use functions that are inside screens? I tried understanding dragging when I wrote this, and the card_dragged function that is the drag callback works flawlessly, but when it wants to call the function snapcard , I get an error that it is not defined. I know I can just put the functions ou...
- Wed Jan 18, 2023 9:24 am
- Forum: Creator Discussion
- Topic: Do you prefer to have an established MC or self insert?
- Replies: 13
- Views: 8687
Re: Do you prefer to have an established MC or self insert?
My thoughts: A fully customizable self-insert blank slate MC can never be an integral part of the story. Sure, he/she experiences it and takes part in it, but so could anybody else. A pre-set MC can have a character background that is deeply connected to the events in the game. Past, personality, qu...
- Sun Apr 03, 2022 2:48 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How to use the Screen Input not during the game?
- Replies: 2
- Views: 489
Re: How to use the Screen Input not during the game?
Look at the description for input:
https://renpy.org/doc/html/screens.html ... nput#input
You are only showing the console screen, but you need to call it. You can scrap the function for toggling the screen completely, a called screen will hide when it returns something, which input does.
https://renpy.org/doc/html/screens.html ... nput#input
You are only showing the console screen, but you need to call it. You can scrap the function for toggling the screen completely, a called screen will hide when it returns something, which input does.
- Sun Apr 03, 2022 2:42 pm
- Forum: Ren'Py Questions and Announcements
- Topic: X-ray effect around cursor?
- Replies: 3
- Views: 839
Re: X-ray effect around cursor?
Why not make it the other way around? Instead of making the top image transparent, you could paste a portion of the "lower" image on top of the top image where the cursor is. First get the mouse coordinates, then crop the X-ray image to whatever it should show at these coordinates, then di...
- Sun Apr 03, 2022 2:32 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Undertale-Like Game
- Replies: 3
- Views: 539
Re: Undertale-Like Game
You can randomize using renpy.random: https://www.renpy.org/doc/html/other.html#renpy-random You can put anything pretty much anywhere on the screen. A minigame is usually confined to its own screen (that is, Renpy "screen"), which contains objects that you can place with attributes like a...
- Fri Apr 01, 2022 7:24 pm
- Forum: Ren'Py Questions and Announcements
- Topic: "return" to specific label?
- Replies: 2
- Views: 367
Re: "return" to specific label?
Oh, thank you, that's handy!
I've been absent for a while so I probably missed a lot of little additions.
I've been absent for a while so I probably missed a lot of little additions.
- Fri Apr 01, 2022 6:53 pm
- Forum: Ren'Py Questions and Announcements
- Topic: "return" to specific label?
- Replies: 2
- Views: 367
"return" to specific label?
Is there a way to use the "return" statement to return not to the point where the label was called, but to any other label? Alternatively, is there a way to remove the last call from the stack so I can just "jump" where I want to be? Otherwise I need to use variables and do stran...
- Wed Jun 17, 2020 4:46 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Adding 'tags' to objects in my Inventory ...
- Replies: 2
- Views: 381
Re: Adding 'tags' to objects in my Inventory ...
variable = ["hat"] means it is a list. With variable.append("socks"), you can add more elements to the list, or you make it variable = ["hat", "socks", "shirt"] from the beginning. Basically the same as in Twine, just minor changes to syntax.
- Tue Jun 16, 2020 4:20 pm
- Forum: Demos & Beta Testing
- Topic: Starlight Shores [BxG [Island-Themed] [Romance] [DEMO AVAILABLE]
- Replies: 2
- Views: 1142
Re: Starlight Shores [BxG [Island-Themed] [Romance] [DEMO AVAILABLE]
404 Page not found
- Tue Jun 09, 2020 3:20 am
- Forum: Creator Discussion
- Topic: [CLOSED POLL!] Winner: MAKE A RYTHM GAME!
- Replies: 18
- Views: 6738
Re: [POLL!] What tutorial for this forum?
A! Especially since in my experience (and I was also told this) Ren'py's engine is not exact enough to sync music and animations.
- Tue Jun 09, 2020 2:41 am
- Forum: Asset Creation: Art
- Topic: Body position feedback
- Replies: 1
- Views: 6522
Re: Body position feedback
While you *can* turn your head about 90°, it is very uncomfortable and you'd normally turn your upper body a little bit too so your neck isn't strained as much.
- Fri May 29, 2020 2:25 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How to show both AnimatedValue AND the value that's changing?
- Replies: 7
- Views: 555
Re: How to show both AnimatedValue AND the value that's changing?
This sadly gives a "division by zero" from renpy's internal workings But it is possible to give it a variable and change the variable before changing the value variable.
- Fri May 29, 2020 10:31 am
- Forum: Ren'Py Questions and Announcements
- Topic: How to show both AnimatedValue AND the value that's changing?
- Replies: 7
- Views: 555
Re: How to show both AnimatedValue AND the value that's changing?
An example like this should go in the docs, because to be honest, I've been trying to get an AnimatedValue to work for years. Partly because it takes "value" as an argument, suggesting that it's a one-time animation from old_value to value. Is there a way to plug a function as an argument,...