I have an issue that I've been unable to solve all weekend.
I want to have a little notification of a player skill change pop in from the edge of the screen and then drop off of it after a short pause. I can created a small custom screen to hold the notification and its fall-off timer.
The problem is is that instead of the transitions affecting the little notice box it is affecting the whole display causing a copy of the scene to slide in from the left and then drop off. The notice box then remains on screen from then on.
Here is the screen code I have
Code: Select all
screen sKillNoteScreen(skill, score):
timer 1.0 action Show("skillShowBox", slideright, skill, score)
screen skillShowBox(skill, score):
vbox xalign 0.1 yalign 0.3 xfill True yfill True:
frame xalign 0.1 yalign 0.3:
text skill + " " + score
timer 0.3 action Hide("skillShow", transition=slideawaydown)
Code: Select all
def changeSkillBonus(self, skill, change):
if self.skillBonus.has_key(skill):
self.skillBonus[skill] += change
renpy.show_screen("skillNoteScreen", skill, str(change))