flame icon indicating copy to clipboard operation
flame copied to clipboard

Implement "rewind" function for TextBoxComponent

Open Wilhansen opened this issue 1 month ago • 1 comments

Problem to solve

Currently, there's no way for a TextBoxComponent to reset to its original state. So when employing the typewriter effect, for example, and letting it finish, then changing the text, the typewriter effect doesn't run again.

Proposal

A rewind/reset method that sets the lifetime back to 0

More information

Already implemented in https://github.com/Wilhansen/flame/tree/feat-add-rewind-textboxcomponent for our own game.

Other

  • [x] Are you interested in working on a PR for this?

Wilhansen avatar Dec 08 '25 02:12 Wilhansen

Sounds like a good idea, feel free to put up a PR

spydon avatar Dec 08 '25 06:12 spydon