Skip to content

[Bug]: TextScroller finish_script is goofed up #3219

@Hypernoot

Description

@Hypernoot

SuperTux Version

0.7-dev

System Information

Ubuntu 20.04

Expected Behavior

  1. finish_script should be ran when the text runs out or Esc is pressed
  2. I can use Effect.fade_out and then Level.spawn to send Tux into a different sector when the text runs out.

Actual Behavior

  1. finish_script is ran on EVERY FRAME
  2. When I use Effect.fade_out, then Level.spawn doesn't work anymore.

Steps To Reproduce Actual Behavior

  1. Create a level with a TextScroller
  2. Fill in finish_script
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions