const characters = Array.from(localVars.word) const currLetter = characters[localVars.currentWordLetterIndex] let stone = runtime.objects.letter_stone.getFirstPickedInstance() stone.instVars["letter"] = currLetter console.log(stone.instVars)
this code works, and console print the currLetter. But when assessing this instance var in the future, the value in undefined. I dont change this value anywhere after this point. To prove this doing this:
localVars.stoneLetter = currLetter
and then
setting the letter text from normal Action, does the job
Develop games in your browser. Powerful, performant & highly capable.
Maybe you spelt the name of the instance variable wrong?
It's hard to suggest anything else without seeing the whole project.