Hey there! Me and my friend (we’re both begginers in coding Phaser and Javascript in general) are trying to build a game where the playable character interacts with NPCs by hearing them talk and pressing Space to “hear” the next piece of dialog.
One way we thought that would be possible was by doing this:
But it didn’t seem to work and we don’t know why and how can we fix that
Can someone help us please?