what I came up with, when trying to understand how papiersam's solution works (Link to their post: viewtopic.php?t=50766 )
obviously similar to their version, but how I prefer it with the explanations I could've needed and additional explanations
You need the 'random' module, so import that
probably do that on top of the start label, not within a label, because saving might raise exceptions due to pickle issues (don't ask me)
Counter loop version: event runs a set amount of iterations, whether the player fails or succeeds
example, where you have to click a randomly-placed button in time
Loop until failure version: event runs until the player fails to click the button in time
Version, where you have to press keys instead of clicking unto a button
I hope that helps someone in understanding how to design a QTE event, which fits into their game. Go check out papiersam's version for a slightly different way and further information.
Quick Time Events - For Noobs
Forum rules
Do not post questions here!
This forum is for example code you want to show other people. Ren'Py questions should be asked in the Ren'Py Questions and Announcements forum.
Do not post questions here!
This forum is for example code you want to show other people. Ren'Py questions should be asked in the Ren'Py Questions and Announcements forum.
-
- Newbie
- Posts: 1
- Joined: Wed Nov 24, 2021 4:21 pm
- Contact:
Who is online
Users browsing this forum: No registered users