flame
flame copied to clipboard
Implement "rewind" function for TextBoxComponent
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?
Sounds like a good idea, feel free to put up a PR