[Solved] Trying to make a clicker timed event you can't win
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
[Solved] Trying to make a clicker timed event you can't win
I've been trying to code an event you can't win that stops when you stop clicking your mouse, similar to button mashing but clicking
Last edited by Rabby on Tue Jan 25, 2022 1:24 pm, edited 1 time in total.
- Per K Grok
- Miko-Class Veteran
- Posts: 882
- Joined: Fri May 18, 2018 1:02 am
- Completed: the Ghost Pilot, Sea of Lost Ships, Bubbles and the Pterodactyls, Defenders of Adacan Part 1-3, the Phantom Flyer
- itch: per-k-grok
- Location: Sverige
- Contact:
Re: [question] Trying to make a clicker timed event you can't win
You could do something like this.
In the code 'stoppoint' defines how fast you need to click to stay alive
Code: Select all
default stopfloat= 0.0
define stoppoint=0.3
screen mbmasher():
text str(stopfloat) ### to se how fast you click, not necessary for the function
key "mousedown_1" action SetVariable("stopfloat", 0)
timer 0.02 action If(stopfloat>stoppoint, true=Jump("Lose"), false=SetVariable("stopfloat", stopfloat + 0.02)) repeat True
label start:
"Start"
call screen mbmasher
label Lose:
"You lose"
$ stopfloat=0.0
jump start
Re: [question] Trying to make a clicker timed event you can't win
I'll give it a shot thanks!
Re: [question] Trying to make a clicker timed event you can't win
It's having an issue of stop float being given a default twice
Who is online
Users browsing this forum: piinkpuddiin