Hi guys,
I have a strange bug since I updated new renpy version.
A lot of my screen work well but not my fight screen,
In this screen the hover on my imagebutton just appear a micro second and after the idle picture take the place but my mouse is still on the button.
All my screen is coded the same way so I don't understand why. The only difference (I guess) is the fight screen is showed when renpy is on a "while" instruction waiting for a variable to be added.
It's a new bug, I don't have this bug on older version (2 years ago).
Have you some clue to resolve the problem ?
Sorry for my bad english.
an example of a disfonctionnal button in the fight screen :
imagebutton idle "interface/strategicum1_active.png" hover "interface/strategicum1_active_hover.png" action SetVariable("strategicum1_debloque", False) xpos 1200 ypos 150
Hover don't work on screen in while instruction.
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.
- PyTom
- Ren'Py Creator
- Posts: 16096
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
- Contact:
Re: Hover don't work on screen in while instruction.
Take a good look at what's modal, and what's not. That's changed quite a bit.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
Re: Hover don't work on screen in while instruction.
I'm not sure to understand, have you perhaps link to documentation ? is it the while clause ?
Edit : Ok, I see in the doc the modal stuff, but with a zorder 1 modal True or False on my problematic screen, it didn't change anything, the hover on my imagebutton appear just a microsecond.
Edit2 : @pythom, I have my rpg.rpy who wait a click on my imagebutton in my screen
Code: Select all
#Il selectionne son attaque et sa cible - select action and target
while attaque_selectionne == 0 or selectionattaque == 0 or cible_index == 100:
"{nw}"
Who is online
Users browsing this forum: No registered users