Skip to main content

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

[added in 1.0.71+] Request: Support for template strings (GM 2023.4.0.84)

A topic by Micha Faw created May 21, 2023 Views: 252 Replies: 1
Viewing posts 1 to 2
(+1)

In the recent update to GameMaker 2023.4.0.84 released about three weeks ago, template strings were added as a new feature, allowing you to replace the clunky concatenation of "Hello my name is " + myName + "!" with an inline variable instead.
When I try the following code, I get an error from GMLive in the Output window "Expected a value, got dollar_sign"

Example Code:
var fruit = "apple"
var guess = $"My guess is {fruit}"

Got the same problem here.
GMLive isn't working with the $ string template introduce few month before in GMS.
+1 for a fix :)