# How to create dialog modal ? like dialog on classic RPG games

**URL:** <https://phaser.discourse.group/t/how-to-create-dialog-modal-like-dialog-on-classic-rpg-games/3377>\
**Category:** Phaser 3\
**Created:** [August 7, 2019, 12:13pm UTC](https://phaser.discourse.group/t/how-to-create-dialog-modal-like-dialog-on-classic-rpg-games/3377 "2019-08-07T12:13:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![William\_Soeparjo](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/william_soeparjo/32/1406_2.png) [@William\_Soeparjo](https://phaser.discourse.group/u/William_Soeparjo)\
**Post date:** [August 7, 2019, 12:13pm UTC](https://phaser.discourse.group/t/how-to-create-dialog-modal-like-dialog-on-classic-rpg-games/3377/1 "2019-08-07T12:13:52Z")

</div>

I following this tutorial [https://gamedevacademy.org/create-a-dialog-modal-plugin-in-phaser-3-part-2/](https://gamedevacademy.org/create-a-dialog-modal-plugin-in-phaser-3-part-2/) but this gave me this error “this.plugins.installLocal is not a function”, i use Phaser 3.17, and this tutorial using Phaser 3.6.0.

How to fix this or an alternative ?

Is there are built-in features to create dialog modal ?

---

<div class="post-metadata">

**Author:** ![fselcukcan](https://avatars.discourse-cdn.com/v4/letter/f/b5a626/32.png) [@fselcukcan](https://phaser.discourse.group/u/fselcukcan)\
**Post date:** [December 17, 2019, 2:19pm UTC](https://phaser.discourse.group/t/how-to-create-dialog-modal-like-dialog-on-classic-rpg-games/3377/2 "2019-12-17T14:19:49Z")

</div>

Hi.  
I am also looking into concrete and useful ways of employing modals and similar game ui components that I need in game development. I t would be great if there were built ins or good frameworks or plugins or tutorials. Maybe we should write one.

I have searched “modal” in docs and 2 classes popped up. They give hints about that a modal can be created as creating and `run`ning a phaser scene:

1. [https://photonstorm.github.io/phaser3-docs/Phaser.Scenes.SceneManager.html#run](https://photonstorm.github.io/phaser3-docs/Phaser.Scenes.SceneManager.html#run)
2. [https://photonstorm.github.io/phaser3-docs/Phaser.Scenes.ScenePlugin.html#run](https://photonstorm.github.io/phaser3-docs/Phaser.Scenes.ScenePlugin.html#run)

of which the second one should be used in most cases. They are same functions anyways.

---

<div class="post-metadata">

**Author:** ![fselcukcan](https://avatars.discourse-cdn.com/v4/letter/f/b5a626/32.png) [@fselcukcan](https://phaser.discourse.group/u/fselcukcan)\
**Post date:** [December 17, 2019, 10:09pm UTC](https://phaser.discourse.group/t/how-to-create-dialog-modal-like-dialog-on-classic-rpg-games/3377/3 "2019-12-17T22:09:21Z")

</div>

I have checked the tutorial you have mentioned. I am not sure if it is possible to stop/pause/sleep the main scene the modal being opened, in cases it is necessary. And it is necessary in some cases. I think that is one of the reasons/advantages to give them, modals, their own scene. Since you can stop the main scene and launch the modal scene and vice versa, however, with the plugins it may not be possible.

---

<div class="post-metadata">

**Author:** ![Rob](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/rob/32/2515_2.png) [@Rob](https://phaser.discourse.group/u/Rob)\
**Post date:** [December 18, 2019, 4:03pm UTC](https://phaser.discourse.group/t/how-to-create-dialog-modal-like-dialog-on-classic-rpg-games/3377/4 "2019-12-18T16:03:45Z")

</div>

_I hope you enjoyed this tutorial and found it helpful. If you have any questions, or suggestions on what we should cover next, let us know in the comments below._

Grr I hate when they tease us with “comments below” but there is no comment feature.
