Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Yo I kept getting issues with some special characters trying to be read, so here is an improved version of the make_clear function, which relies on RegEx instead of replacing:

func make_clear(text: String) -> String:

var regex = RegEx.new()

regex.compile("[^A-Za-z0-9 ]+")

return regex.sub(text, "", true)