Skip to main content

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

I see you made this with Phaser 3. Could you please tell me how you handle determining when the player is by a NPC and starting the conversation?

Hey, it's inelegant (jam code) but the source is available here:

https://github.com/DannyT/ggj-secrets

Specifically, this is the bit which handles the interaction, I have an invisible box gameobject which I do hit detection on to determine what it's overlapping with:

https://github.com/DannyT/ggj-secrets/blob/master/src/scenes/GameScene.js#L163

Thanks a bunch. I have been looking all over for a way to do this.