So, I have a "Practice" screen. On that screen, there are buttons to call in different "branches". These branches are screens, all with the tag "skillBranch". Let me show you how one of them looks like.
Code: Select all
screen MorningBranchMeele:
tag skillBranch
imagemap:
xalign 0.5
yalign 0.5
alpha False
ground "screens/practice/activity/melee.png"
hover "screens/practice/activity/melee_hover.png"
selected_idle "screens/practice/activity/melee_selected_idle.png"
selected_hover "screens/practice/activity/melee_selected_hover.png"
hotspot(827, 105, 302, 51) hovered [(SetVariable("hoverSkill", "Unarmed")),(Show("skillDescription"))] unhovered Hide("skillDescription") action [(SetVariable("InTeachingMorning", "Unarmed"))]
hotspot(827, 165, 302, 51) hovered [(SetVariable("hoverSkill", "Axe")),(Show("skillDescription"))] unhovered Hide("skillDescription") action [(SetVariable("InTeachingMorning", "Axe"))]
hotspot(827, 225, 302, 51) hovered [(SetVariable("hoverSkill", "Knife")),(Show("skillDescription"))] unhovered Hide("skillDescription") action [(SetVariable("InTeachingMorning", "Knife"))]Code: Select all
screen emptyBranch:
tag skillBranchWell, sadly, that is not the case. It usually works, but not always. And this is a major bug in my project.
I went for two more different solutions.
A) Into the "action" of button that exits the Practice screen, I actually added 24 variations of Hide("???branch???"), so even if the "tag recognition" for emptyBranch failed and did not hide other screens, all branches that would be possibly on the screen would hide.
This was as much effective as my original solution.
B) Upon exiting Practice, you will get into the "root menu". You can also enter root menu by jumping to a label, and as far as I know, jumping to a label should hide all screens.
But the effectiveness was the same.
I honestly do not get it. All three solutions SHOULD WORK, these are just simple mechanics, it isn't neither brain science nor rocket surgery!
