So i have a nice big viewport showing my battle map. At the bottom left corner of the viewport, the various attacks a unit can make is displayed. My problem is however that when the player hovers a button, even though it is imposed over the viewport (and not inside the viewport: block), the edge scroll still activates and meanders down the map while the player is looking at the attack details.
Is there any way of disabling edge scroll temporarily upon hover of a button?
Disabling viewport edge scroll temporarily?
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.
- Evildumdum
- Regular
- Posts: 191
- Joined: Sun Jan 18, 2015 8:49 am
- Projects: ApoclypseZ
- Contact:
Disabling viewport edge scroll temporarily?
"If at first you don't succeed, try hitting it with a shoe."
- papiersam
- Veteran
- Posts: 231
- Joined: Fri Aug 12, 2016 2:24 pm
- Completed: Gem Hunt Beta, 1/Probably, Animunch
- Projects: The Panda Who Dreamed
- Contact:
Re: Disabling viewport edge scroll temporarily?
I'm just guessing here, but would
work, given that button_var is true when the command buttons at the bottom are shown?
Code: Select all
if not button_var:
edgescroll 350, 20
- Evildumdum
- Regular
- Posts: 191
- Joined: Sun Jan 18, 2015 8:49 am
- Projects: ApoclypseZ
- Contact:
Re: Disabling viewport edge scroll temporarily?
It works, thanks
"If at first you don't succeed, try hitting it with a shoe."
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot]