-
-
Notifications
You must be signed in to change notification settings - Fork 530
Open
Description
SuperTux Version
0.7-dev
System Information
Ubuntu 20.04
Expected Behavior
- finish_script should be ran when the text runs out or Esc is pressed
- I can use Effect.fade_out and then Level.spawn to send Tux into a different sector when the text runs out.
Actual Behavior
- finish_script is ran on EVERY FRAME
- When I use Effect.fade_out, then Level.spawn doesn't work anymore.
Steps To Reproduce Actual Behavior
- Create a level with a TextScroller
- Fill in finish_script
- Observe how the finish_script is being ran on every frame.
Additional Information
I used this workaround to detect when the text is actually gone.
init-script:
end <- false;
start_cutscene();
wait(86400);
end_cutscene();
end <- true;
And in the finish script:
if (end) {
//do something
}
and then hope that the player remembers to press Esc when the text runs out.
Guidelines For Reporting Issues
- I have read https://github.com/SuperTux/supertux/blob/master/CONTRIBUTING.md#bug-reports.
- I have verified this isn't an issue that's already been reported.
- I have verified this isn't a discussion, or an issue about a crash or a feature request, but rather an actual bug ─ that is, the game did something not intended.
- I have verified this issue is not about wrong translations (use Transifex for those), or anything unsupported (e.g. third-party add-ons).
- In this report, I have only included details about one (1) bug.
- If I make a mistake while submitting this report, I agree to use the "Edit" feature to correct it, instead of closing this issue and opening a new one.