This one seems to come up when something is being dragged and a timer or something using ATL goes off, resulting in the drag (And in many cases the game itself) freezing. The following examples happened on a screen brought using the call command and a game with built distributions (I had a few instances of errors showing up only after building them, mostly regarding blank spaces after the filenames. "background.png " wouldn't show as an error until the distributions were built).
This was the code for the draggable:
Code: Select all
init python:
def var_a_add(drags, drop):
if not drop:
drags[0].snap(952, 329, delay=0)
return
else:
store.var_a += 1
drags[0].snap(952, 329, delay=0)
renpy.restart_interaction()
return
I tried adding an effect to it when dropped into the droppable, first I used a simple screen
Code: Select all
screen effects:
timer 0.2 action Hide("effects")
add "flash"
Code: Select all
image flash:
add "1.png"
pause 0.1
add "2.png"
pause 0.1
Code: Select all
init python:
def var_a_add(drags, drop):
if not drop:
drags[0].snap(952, 329, delay=0)
return
else:
store.var_a += 1
drags[0].snap(952, 329, delay=0)
renpy.restart_interaction()
renpy.show_screen("effects")
return
Thinking it was because of the screen's timer, I changed a bit the code of the "flash" image so it went to alpha 0 after the animation ended and then I changed the draggable code to:
Code: Select all
init python:
def var_a_add(drags, drop):
if not drop:
drags[0].snap(952, 329, delay=0)
return
else:
store.var_a += 1
drags[0].snap(952, 329, delay=0)
renpy.restart_interaction()
ui.add("flash")
return
What's more, I had a keyboard key programmed to use the same animation in the effects screen for testing purposes, if the key was pressed when the object was being dragged, the animation would play and the drag would be frozen in place afterwards (As with the other cases, sometimes freezing the whole game with it).