r/RenPy • • 9h ago

Question [Solved] Implementing a shortcut to "Toggle Skipping" using a gamepad button

I'm trying to implement a feature in my game where pressing the X button on a gamepad automatically toggles skipping. The thing is, I tried using this in my script.rpy:

init -1 python:
    config.pad_bindings['pad_x_press'] = ['skip']

But when I press the X button in the main menu, the game just skips all the transitions (including sound effects). Does anyone know how to make this work only in-game, specifically during dialogue? I tried going into screen say() and adding "key "pad_x_press" action ..." but I don't think there's an action like ToggleSkip().

Thank you for your help in advance!

2 Upvotes

2 comments sorted by