YoYo Games Wiki

chr(val)

From YoYoGames Wiki

Description

The chr() function will let the user type in a number and the variable will change to the corresponding ASCII symbol.

Arguments

  • val: ASCII number of character to be output. If the user typed in 97, for example, the variable using the chr function will turn into "a". Please see the ASCII table for more information.

Returns

  • (real): The character that corresponds to the ASCII value.

Examples

 show_message(chr(97)); num = get_integer("numeral to ascii converter",""); num = chr(num);
Content from GMKB, was used to expand this article. The content was contributed by cityscape.