Search found 1031 matches
- Sun Apr 03, 2022 1:43 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [solved] transform moving when an item from the same list is removed
- Replies: 4
- Views: 308
Re: transform moving when an item from the same list is removed
Hiding them is what I'm doing as a solution, but in most cases, I'll be running different operations over the list and not removing them can cause the list grow too big and slow down the game over a long time. I'm changing their numbers to move them, having an ease function makes the movement smooth...
- Sun Apr 03, 2022 12:44 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [solved] transform moving when an item from the same list is removed
- Replies: 4
- Views: 308
[solved] transform moving when an item from the same list is removed
One of the things that have been annoying me for a long time is: Often I loop over a list to create something residing on a transform, when I remove an item from the list, others move. It's hard to describe, you can try this mock-up to see what I mean. default all_buttons = [] init python: def add_b...
- Sat Mar 12, 2022 2:52 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Passing the line argument to the editor?
- Replies: 2
- Views: 283
Re: Passing the line argument to the editor?
Thank you, I'll try that and report back ^^
- Sat Mar 12, 2022 10:18 am
- Forum: Ren'Py Questions and Announcements
- Topic: Passing the line argument to the editor?
- Replies: 2
- Views: 283
Passing the line argument to the editor?
I remember when I was using Editra as my editor, when I would press ctrl+e or click on an error, it would open the file and go to the relevant line. I'm not sure if that was the case when I switched to vscode. These days I use VSCodium portable(binaries of VSCode without microsoft telemetry) and I'm...
- Mon Jan 24, 2022 1:15 pm
- Forum: Development of Ren'Py
- Topic: Ren'Py Gripes
- Replies: 556
- Views: 595693
Re: Ren'Py Gripes
alongside align .5,.5 , I often find my self typing fit_first True every time I use fixed. I think this setting should be True by default since the main use of fixed is overlapping two things on top of each other. Also, since putting two object inside frames and buttons would distort the frame size,...
- Sun Dec 05, 2021 2:18 am
- Forum: Ren'Py Questions and Announcements
- Topic: I made a routes analyser - visualise your project with a graph!
- Replies: 25
- Views: 5401
Re: I made a routes analyser - visualise your project with a graph!
Sounds interesting. One thing you might want to be aware of, is the gameplay loops:
They're often used for minigames and such, the code might have problem computing infinite loops like this.
Code: Select all
label main_loop:
show screen some_map
pause
jumps main_loop
- Thu Nov 18, 2021 7:07 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [solved] How to hide the mouse pointer?
- Replies: 2
- Views: 360
Re: How to hide the mouse pointer?
I've tried `SetVariable("mouse_visible",False)` and `mouse_visible = False` inside a function, neither worked and I assumed it's broken. Now that I'm testing... `store.mouse_visible = False` works in python and `SetVariable("mouse_visible",False)` works after I've disabled the ti...
- Thu Nov 18, 2021 5:57 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [solved] How to hide the mouse pointer?
- Replies: 2
- Views: 360
[solved] How to hide the mouse pointer?
I've assumed there's an easy way to hide the mouse pointer that doesn't involve adding a transparent image to `config.mouse`, but I couldn't find anything about it in the documentation or the forum. All I've found was `mouse_visible = False` that doesn't seem to hide the pointer. Am I missing someth...
- Fri Oct 22, 2021 10:39 am
- Forum: Ren'Py Questions and Announcements
- Topic: [solved] initial values for transform
- Replies: 2
- Views: 345
Re: [solved] initial values for transform
thank you ^^
I was so focused on modifying the transform, missed the solution that should've been obvious to me
I was so focused on modifying the transform, missed the solution that should've been obvious to me
- Fri Oct 22, 2021 4:57 am
- Forum: Ren'Py Questions and Announcements
- Topic: [solved] initial values for transform
- Replies: 2
- Views: 345
[solved] initial values for transform
I have this: default objects = [] init python: def add_one(): objects.append([renpy.random.randint(10, 1910), renpy.random.randint(10, 1070)]) def move_left(): for i in objects: i[0] -= 100 screen initial_test(): hbox: spacing 10 button: background "#444" text "add one" action Fu...
- Fri Sep 24, 2021 12:40 am
- Forum: Ren'Py Questions and Announcements
- Topic: [solved] how to pass additional arguments to bar's changed function
- Replies: 6
- Views: 517
Re: how to pass additional arguments to bar's changed function
renpy.partial did the job, thank you Ocelot. I'm sure it will come handy in all kind of situations.
and thank you jeffster
and thank you jeffster
- Thu Sep 23, 2021 3:31 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [solved] how to pass additional arguments to bar's changed function
- Replies: 6
- Views: 517
Re: how to pass additional arguments to bar's changed function
How about using Bar Values? I did look into that, but couldn't fund any substantial information or an example for it. even tried FieldValue() to no avail Otherwise, if a function doesn't accept enough arguments, I would pass them through global variables. setting up global variables isn't feasible ...
- Thu Sep 23, 2021 12:41 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [solved] how to pass additional arguments to bar's changed function
- Replies: 6
- Views: 517
[solved] how to pass additional arguments to bar's changed function
I have this bar:
how can I pass additional arguments to the changed function?
Code: Select all
bar:
xysize 300,40
value i[1] range i[2] changed g.changed
- Sat Sep 11, 2021 2:24 am
- Forum: Ren'Py Questions and Announcements
- Topic: [solved] define animation inside python function
- Replies: 4
- Views: 421
Re: define animation inside python function
I've finally got time to try it and it works, thank you both. Now I'm wondering: since we're calling this function constantly for every animated object of the same type. Does it come with a bigger performance hit than animations that are defined the regular way? Or regular animation does the same th...
- Thu Sep 09, 2021 3:57 am
- Forum: Ren'Py Questions and Announcements
- Topic: simulate a keypress from python
- Replies: 1
- Views: 341
simulate a keypress from python
I'm trying to add a button to the overlay that mimics a keyboard key being pressed. for example when I press this button the interface under it does whatever happens when the "e" button is pressed. all of the topics I've found searching were either very old using `ui.key` or where binding ...