Kia ora everyone!
I'm trying to make my own input system in Kaboom.js by adding functions like the below and adding each key to a string called i
(short for input).
keyPress("j", () => { i.concat("j"); });
Then, I try and console.log i
. (i do it like console.log(i);
) And for some reason I get nothing. I think it's because it's not logging an update to the string?
Is there a better method I can use, and what is wrong with my program?
Ngā mihi Florence