Search found 3095 matches
- Sun Apr 28, 2024 7:57 am
- Forum: Ren'Py Questions and Announcements
- Topic: [solved] get click position on the button?
- Replies: 5
- Views: 163
Re: get click position on the button?
I have a big button and I want to find out where it has been clicked in relation to it's top left. So far I've been positioning it manually, that way I know where my button starts at all times, this limits the use of vbox, hbox, paddings and drags. I wonder is there's an easy way to find where on t...
- Fri Apr 19, 2024 3:36 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Shake not working
- Replies: 4
- Views: 347
Re: Shake not working
...I got the same error doing that. Is looking for a position type not an int Upd: this should work... init: python: import math class Shaker(object): anchors = { 'top' : 0.0, 'center' : 0.5, 'bottom' : 1.0, 'left' : 0.0, 'right' : 1.0, } def __init__(self, start, child, dist): if start is None: st...
- Mon Apr 15, 2024 6:44 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Shake not working
- Replies: 4
- Views: 347
Re: Shake not working
Hm, just tested and the original code worked for me in 8.1.0.
What version of Ren'Py do you use? Could you provide the part of the code where you using this shake effect?
Upd: original code worked in 8.2.1 (no errors).
- Sun Apr 14, 2024 5:03 am
- Forum: Ren'Py Questions and Announcements
- Topic: Shake not working
- Replies: 4
- Views: 347
Re: Shake not working
Not tested, but try to convert the result of calculation to integer, likeneometalero wrote: ↑Sat Apr 13, 2024 7:18 pm ...It's an old project so I dont feel like creating a new transformation and apply it in all cases. Any way to salvage this old code?
Code: Select all
nx = xpos + int(self.dist * (renpy.random.random() * 2 - 1))
- Tue Apr 09, 2024 5:47 pm
- Forum: Ren'Py Questions and Announcements
- Topic: My dialogue is stuck! [SOLVED]
- Replies: 1
- Views: 169
Re: My dialogue is stuck!
...after you miss the option, the dialogue just gets stuck!... When time is gone the timer makes the game jump to label, stored in 'missed_event' variable, and hides the 'timerDown' screen. But 'QTEdown' screen is still shown, and timer make the game jump to label, stored in 'missed_event' variable...
- Wed Mar 13, 2024 5:21 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Simple car chase event
- Replies: 5
- Views: 377
Re: Simple car chase event
...i dont know enough, can renpy move imagebutton by transform operator? and can i put digits from renpy.random.randint(a, b) into xalign?... Kind of sample to play with #### # Car Chase Game # #### # images # image car_img: Solid("#c0c0c0") size(400, 200) image bg_road = Fixed( Solid(&qu...
- Wed Jan 31, 2024 5:20 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Ren'Py @ 20
- Replies: 4
- Views: 648
Re: Ren'Py @ 20
Whoa, time flies!
Many years to Ren'Py...))
Many years to Ren'Py...))
- Wed Nov 08, 2023 3:02 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Passing a label name to another label as a parameter? [solved]
- Replies: 6
- Views: 3112
Re: Passing a label name to another label as a parameter?
So, at the start of each chapter in my game, I want to call a label that does a few things like stop the music and show a chapter title card, and to avoid having to copy and paste this same label multiple different times, I'd like to be able to call a single label and just swap out certain things l...
- Sun Oct 29, 2023 5:19 pm
- Forum: Ren'Py Questions and Announcements
- Topic: is there anyway to save scrollbar position after this screen is replaced or hidden
- Replies: 2
- Views: 2187
- Sat Oct 28, 2023 6:21 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Code for the Fifteen / Slide Puzzle mini game doesn't work any more, any ideas?
- Replies: 1
- Views: 2392
Re: Code for the Fifteen / Slide Puzzle mini game doesn't work any more, any ideas?
... Maybe it's because Renpy has been updated since the code was posted? ... Looks like... Try to change this lines label fifteen_game: ##### Game settings. # # Let's set the size of game field in tiles, for example 9 tiles (3 x 3). $ grid_width = 3 $ grid_height = 3 # Next 4 lines are used to set ...
- Sat Oct 28, 2023 4:47 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved] Can you put an ATL transform on a bar?
- Replies: 4
- Views: 2963
Re: Can you put an ATL transform on a bar?
... Is there a way I can go about moving a bar on the screen? Just use transform as you did for imagebutton. Try transform bar_transform(t=0.5): 0.5 parallel: linear t * (config.screen_width / config.screen_height) xalign 1.0 linear t * (config.screen_width / config.screen_height) xalign 0.0 repeat...
- Thu Oct 12, 2023 3:34 pm
- Forum: Ren'Py Questions and Announcements
- Topic: (Solved) Question about Boolean Variables
- Replies: 6
- Views: 1877
Re: Question about Boolean Variables
... Change this init: ## All variables are in a seperate varables.rpy file. $ crawlacrossfield = False $ walkacrossfield = False $ runacrossfield = False to ## All variables are in a seperate varables.rpy file. default crawlacrossfield = False default walkacrossfield = False default runacrossfield ...
- Wed Oct 11, 2023 8:27 am
- Forum: Ren'Py Questions and Announcements
- Topic: Buttons on a 3x3 grid that only show when they need to be pressed.
- Replies: 3
- Views: 1701
Re: Buttons on a 3x3 grid that only show when they need to be pressed.
This might be the thing you need - viewtopic.php?f=51&t=40295#p428028
- Fri Sep 29, 2023 12:50 pm
- Forum: Asset Creation: Art
- Topic: Video will play as a cutscene but won't play as a background scene
- Replies: 1
- Views: 1544
Re: Video will play as a cutscene but won't play as a background scene
Do you have any code after line that tried to scene or show your video?
Code: Select all
label start:
scene alarm
"?!"
- Wed Sep 20, 2023 4:18 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Unresponsive image buttons [SOLVED]
- Replies: 14
- Views: 3402
Re: Unresponsive image buttons
So, what about size of those 'forest' images?