gb-studio-plugins
gb-studio-plugins copied to clipboard
Printer Plugin: Sibling Events of a Print Screen Background don't fire when attached to a Button
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:
- Show Actor
- Print Screen Background
- Attach timer script (3s)
- Hides the Actor
- remove timer script
But no Events fired except the 'Print'.
I worked around this by putting the 'Print Screen Background' Event inside its own timer:
- Show Actor
- Attach timer script after 1 frame
- Hide Actor
- Remove timer script
- Print Screen Background
But ideally, all sibling Events of 'Print' should fire, when they are attached directly to a Button
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.