Word game with gdevelop?

Thanks for asking. Few comes to my mind, not necessarily for this project in particular but for general use, some of them may be better implemented as a condition/action than expression:

Get length of text (return number of characters)
StrGetLength(“hello”) = 5

Find character in text (look for character return true or false)
StrFindChar(‘e’, “hello”) = true

Get index of character (return the index number of first char found)
StrGetCharIndex(‘l’, “hello world”) = 2 //index of first char is 0

Find portion in text (look for portion return true or false)
StrFindPortion(“hello”, “hello world”) = true

Get index of first char of portion (return the index of first character of portion)
StrGetPortIndexBegin(“ello”, “hello”) = 1

Get index of last char of portion (return the index of last character of portion)
StrGetPortionIndexEnd(“ello”, “hello”) = 4

Subtract portion from text (look for portion and return the remaining)
StrSubtractPortion(“hello”, “hello world”) = " world"

Subtract character (look for a character and return the ramining)
StrSubtractChar(‘l’, “hello world”) = “heo word”

Get character number (return the number a character is appear in a text)
StrGetCharCount(‘l’, “hello world”) = 3

Get portion number (return the number a portion is appear in a text)
StrGetPortionCount(“ho”, “hohoho”) = 3

Replace string (replace selected portion)
StrReplace(“the beginning”, “beginning”, “end”) = “the end”

Trim string (removes white space)
StrTrim(“hello world”) = “helloworld”

Get number of space from text (return the number of white spaces in text)
StrGetWhiteSpaceCount(“I like it”) = 2

Get index of white space (return the index number of first white space)
StrGetWhiteSpaceIndex(“I like it”) = 1

Get text color (return the rgb values of text color)
StrGetTextColor(object_name) = “R;G;B”

1 Like