Cannot start an interaction in the middle of an interaction

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
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.
Post Reply
Message
Author
Eliont
Regular
Posts: 111
Joined: Thu Aug 06, 2009 6:51 am
Completed: Begin of Evangelion, SAO - Smile of the black cat, SAO - Project "Ceramic Heart", Time for Dragons
Location: Russia
Contact:

Cannot start an interaction in the middle of an interaction

#1 Post by Eliont »

This code display list of units (method of class Timeline):

Code: Select all

        def overlay(self):
            if self.enable:
                for i,event in enumerate(self.list):
                    if unit.has_key(event.data):                             
                        img = im.Scale(unit[event.data].face['norm'],36,38)
                        uiat(self.step*event.pos,round(config.screen_height-self.height*0.5),-0.5,0.5)                  
                        ui.imagebutton(img,im.MatrixColor(img,im.matrix.brightness(0.25)), clicked=unit[event.data].point)
                        uiat(self.step*event.pos,1.0,-0.5,1.0)  
                        ui.text("{size=14}{color=#0ff}%.2f"%event.time,xalign=0.5)
Click to unit avatar(ui.imagebutton) makes them flash.
Method of class Unit:

Code: Select all

        def point(self):
            global current
            current = self.id
            pos = grid.rel_to_abs(self.pos) 
            renpy.show('pointer',what=im.MatrixColor(self.sprite,im.matrix.brightness(0.5)),at_list=[Position(xpos=pos[0],ypos=pos[1],xanchor=0.5,yanchor=1.0)],zorder=99)
            renpy.with_statement(Dissolve(0.4))  
            renpy.hide('pointer')
            renpy.with_statement(Dissolve(0.4))  
But now, in 6.11.2 (in version 6.10.2 works) it cause error.
Attachments
traceback.txt
(2.31 KiB) Downloaded 80 times
Game screenshot (in battle).
Game screenshot (in battle).

Post Reply

Who is online

Users browsing this forum: Kocker