# Main menu in my game with play button

**URL:** <https://forum.playcanvas.com/t/main-menu-in-my-game-with-play-button/8979>\
**Category:** Help & Support\
**Created:** [January 19, 2019, 8:28pm UTC](https://forum.playcanvas.com/t/main-menu-in-my-game-with-play-button/8979 "2019-01-19T20:28:28Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Axulity\_YT](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/axulity_yt/32/4961_2.png) [@Axulity\_YT](https://forum.playcanvas.com/u/Axulity_YT)\
**Post date:** [January 19, 2019, 8:28pm UTC](https://forum.playcanvas.com/t/main-menu-in-my-game-with-play-button/8979/1 "2019-01-19T20:28:28Z")

</div>

so im mking my second game but tis time im trying to make a main menu for my game.So like when you lod into the game you have a pplay button and other cool stuff.

---

<div class="post-metadata">

**Author:** ![yaustar](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/yaustar/32/2268_2.png) [@yaustar](https://forum.playcanvas.com/u/yaustar)\
**Post date:** [January 20, 2019, 9:49pm UTC](https://forum.playcanvas.com/t/main-menu-in-my-game-with-play-button/8979/2 "2019-01-20T21:49:12Z")

</div>

There’s quite a few tutorials and project samples for the UI system that is worth looking at.

---

<div class="post-metadata">

**Author:** ![Axulity\_YT](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/axulity_yt/32/4961_2.png) [@Axulity\_YT](https://forum.playcanvas.com/u/Axulity_YT)\
**Post date:** [January 20, 2019, 11:15pm UTC](https://forum.playcanvas.com/t/main-menu-in-my-game-with-play-button/8979/3 "2019-01-20T23:15:38Z")

</div>

I saw some torturials yea but im trying to figure out hoow to aadd a play button mostly and i alreaddy know how to code a main menu wwith html and css

---

<div class="post-metadata">

**Author:** ![yaustar](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/yaustar/32/2268_2.png) [@yaustar](https://forum.playcanvas.com/u/yaustar)\
**Post date:** [January 21, 2019, 11:22am UTC](https://forum.playcanvas.com/t/main-menu-in-my-game-with-play-button/8979/4 "2019-01-21T11:22:53Z")

</div>

Oh, you are looking for more of the state change logic.

Look at the Keepy Uppy or the Flappy Bird example of games that have start menus: [https://developer.playcanvas.com/en/tutorials/?tags=games](https://developer.playcanvas.com/en/tutorials/?tags=games)

---

<div class="post-metadata">

**Author:** ![Axulity\_YT](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/axulity_yt/32/4961_2.png) [@Axulity\_YT](https://forum.playcanvas.com/u/Axulity_YT)\
**Post date:** [January 21, 2019, 12:44pm UTC](https://forum.playcanvas.com/t/main-menu-in-my-game-with-play-button/8979/5 "2019-01-21T12:44:56Z")

</div>

um ok sure i guess ill try

---

<div class="post-metadata">

**Author:** ![DevilZ](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/devilz/32/15506_2.png) [@DevilZ](https://forum.playcanvas.com/u/DevilZ)\
**Post date:** [January 21, 2019, 3:27pm UTC](https://forum.playcanvas.com/t/main-menu-in-my-game-with-play-button/8979/6 "2019-01-21T15:27:09Z")

</div>

Please check out our game at [www.crazygames.com/game/space-escape](http://www.crazygames.com/game/space-escape). Is this the sort of start menu you want? In that case, I could help you out…

---

<div class="post-metadata">

**Author:** ![MasalovAndreey](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/masalovandreey/32/7325_2.png) [@MasalovAndreey](https://forum.playcanvas.com/u/MasalovAndreey)\
**Post date:** [January 21, 2019, 4:21pm UTC](https://forum.playcanvas.com/t/main-menu-in-my-game-with-play-button/8979/7 "2019-01-21T16:21:13Z")

</div>

> [@Axulity\_YT](#):
>
> so im mking my second game but tis time im trying to make a main menu for my game.So like when you lod into the game you have a pplay button and other cool stuff.

In my project, I added a second scene in which, and the help of HTML and CSS, I made a menu. Then I implemented a button event handling using vanilla JavaScript, which loads of the main scene with the game by its id.

---

<div class="post-metadata">

**Author:** ![Axulity\_YT](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/axulity_yt/32/4961_2.png) [@Axulity\_YT](https://forum.playcanvas.com/u/Axulity_YT)\
**Post date:** [January 21, 2019, 6:39pm UTC](https://forum.playcanvas.com/t/main-menu-in-my-game-with-play-button/8979/8 "2019-01-21T18:39:35Z")

</div>

yea i guess its it.Thank you

---

<div class="post-metadata">

**Author:** ![Marquise\_Edwards](https://forum.playcanvas.com/letter_avatar_proxy/v4/letter/m/53a042/32.png) [@Marquise\_Edwards](https://forum.playcanvas.com/u/Marquise_Edwards)\
**Post date:** [February 1, 2019, 11:53am UTC](https://forum.playcanvas.com/t/main-menu-in-my-game-with-play-button/8979/9 "2019-02-01T11:53:59Z")

</div>

ooo I get iit now so you made a second scene then uing html and css you maade a menu.Then you implented the button using vaanillaa jaavasccript which someehow loads the main scene with the game by the iid
