pau-tomas / gb-studio-plugins

A set of experimental plugins for GB Studio
94 stars 10 forks source link

Printer Plugin: Sibling Events of a Print Screen Background don't fire when attached to a Button #15

Open LordRembo opened 9 months ago

LordRembo commented 9 months ago

When you attach the 'Print screen background' Event to a button ('Attach Script to Button'), other events coming before or after it don't get executed. For my example, I wanted to show an Actor (showing a 'printing…') graphic, when you start printing. The way I initially tried to do this, was by setting this chain of events in the button script:

But no Events fired except the 'Print'.

I worked around this by putting the 'Print Screen Background' Event inside its own timer:

But ideally, all sibling Events of 'Print' should fire, when they are attached directly to a Button

pau-tomas commented 2 months ago

Catching up with some of the issues, sorry for the delay. I think adding an Idle event before the call to the Print event should help with this.