← Return to game
Log in with itch.io to leave a comment.
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.
← Return to game
Comments
Log in with itch.io to leave a comment.
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.