How to code a value to increase when moving the mouse
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.
How to code a value to increase when moving the mouse
I'm trying to have a value to increase when the mouse is moved over an image while the mouse button is held down, is it possible to code this in renpy? Additionally, how would i have a value increase or decrease over time. Thanks!
- Kia
- Eileen-Class Veteran
- Posts: 1040
- Joined: Fri Aug 01, 2014 7:49 am
- Deviantart: KiaAzad
- Discord: Kia#6810
- Contact:
Re: How to code a value to increase when moving the mouse
try:
I didn't run the code so it might contain errors
Code: Select all
default my_variable = 0
screen text:
button:
text "test"
action NullAction()
hover SetVariable("my_variable", my_variable+1)
Who is online
Users browsing this forum: No registered users