I want to build a RPG game with many conversations.
The game will jump between phaser codes and the conversation codes now and then.
Sometimes I also need the conversation to proceed when I move the player on the screen.
How should I design the code structures ? The phaser renders its scenes inside the update() function, I don’t know how to jump outof the function and return back when I need. Are there any examples ?
(I want to run the conversion code with pure js without phaser3, so I need to jump outof the update() function)
Thanks.
Usually this is done by switching between 2 scenes. You can make a scene without an update()
method.
1 Like