Forum rules - please read before posting.

Correct way to display a menu on your start screen

Hi all,

I've been having trouble trying to display a start menu in my start scene.

The methodology I'm using for a start screen is to create a "start menu" which I have checked "Enabled on start" as true in the AC game editor.

I've also in the start scene, created an "on start" cutscene which has a "Menu -> Change State" action to turn on the "Start" menu. I've also got a global "ActionList on start game" that does this as well.

What's interesting is that this works in Editor when I hit play, the start scene starts, and the menu displays. But it doesn't work when I do a build (mac or android). In a proper build, the screen is blank with no start menu.

Am I missing something here? Is there a better way or subtlety I'm missing?

Thanks,

ken.

Comments

  • Welcome to the community, @kbarber.

    There should be no difference between a build and Edit mode. What's your AC version? A warning or error message in Unity's Player Log may reveal more about the cause.

    As you can start (even if just when testing) a game from different scenes, it's best to only have the menu turn on when in the start scene itself.

    Uncheck Enabled on start? in the Menu's properties, and remove the Menu: Change state Action from your ActionList on start game as well. It should just be in your OnStart Cutscene for the start scene.

  • Hi @ChrisIceBox,

    I followed your advice and it fixed the problem.

    I removed the need for the ActionList on start game first, this was obviously just my attempt to see if different hooks might fix the problem.

    Leaving just the OnStart action that enabled the menu, and disabling the "Enabled on start?" option fixes it. It shows the menu in the editor play and the build.

    If I have "Enabled on start?" enabled, and the OnStart action removed - it shows the menu in the editor play, but not in the build. This was what triggered my confusion.

    Anyway, thanks for the help & great product.

    ken.

  • edited October 2019

    If I have "Enabled on start?" enabled, and the OnStart action removed - it shows the menu in the editor play, but not in the build. This was what triggered my confusion.

    Thank you, I'll attempt a recreation. What are your Unity and AC versions, and what platform are you building to?

    Also, does the menu itself pause the game or have an "ActionList when turn on" assigned?

  • Thank you, I'll attempt a recreation. What are your Unity and AC versions, and what platform are you building to?

    Unity 2018.4.9f1 and AC 1.69.2 and I'm building for Android.

    The menu does pause the game, there is no "ActionList when turn on" assigned.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.