Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Main Menu won't play the game

Hello, I followed a tutorial on how to make a third person temple run like game (link: https://www.youtube.com/watch?v=yS-yQfo0lc0). Unfortunately I do not have enough experience with coding and especially Unreal Engine so it's made doing the extras interesting.

Anyways I followed this guide (link: https://docs.unrealengine.com/latest/INT/Engine/UMG/QuickStart/3/) in creating a Main Menu. The issue I am facing is that whenever I click "Play Game" the game does not launch/begin. Now since I have already made the game and I know it did work it's made coding messy because I am unsure where some of it goes as I assume is why the game is not properly working. Another issue I have noticed is when I go into settings and try and change the resolution settings that I have created they don't change. I am unsure whether that's an issue from my doing or whether it just doesn't work because it's in the Unreal Engine software.

Any sort of advice would be grateful!

Resolution Coding: (Below)

alt text

Run Game Mode Coding: (Below)

alt text

Main Menu Coding: (Below)

alt text

Product Version: UE 4.12
more ▼

asked Aug 09 '16 at 08:45 AM in Blueprint Scripting

avatar image

3 1 2 5

(comments are locked)
10|2000 characters needed characters left

3 answers: sort voted first
more ▼

answered Aug 22 '16 at 12:16 PM

avatar image

3 1 2 5

(comments are locked)
10|2000 characters needed characters left

Have you tried using On Pressed event instead of On Clicked? I had similar issue where for some reasons OnClicked didn't want to work at all.

more ▼

answered Aug 09 '16 at 01:56 PM

avatar image

1.1k 18 23 38

avatar image lmearsy Aug 09 '16 at 09:47 PM

I added in the On Pressed event, it didn't change anything unfortunately. I also disconnected my On Clicked event and that still didn't change anything.

(comments are locked)
10|2000 characters needed characters left

Well, you put the main menu code in your game mode blueprint . People usually use an empty map for the main menu, and set that map as the default map.

more ▼

answered Aug 09 '16 at 03:01 PM

avatar image

111 1 3 5

avatar image lmearsy Aug 09 '16 at 09:49 PM

So I create a new function under RunGameMode for the main menu?

And sorry I didn't follow what you meant in the second sentence, it sort just went over my head with what you meant haha.

avatar image RS Aug 09 '16 at 10:20 PM

haha dont worry..

Well, no.. you are using the GameMode Class, and you shouldn't create there. You should use GameInstance class..(but that is a little more advanced) I will give some step to have a main menu working with some pretty basic setup..

  1. Create a new EMPTY level

  2. Go to the LEVEL Blueprint of the empty level

  3. Add a begin play node, and conect to your "create widget" node and the "Add To Viewport" node.

  4. or watch this tutorial https://www.youtube.com/watch?v=yua1KSjJDdY

Please let me know if you make it work!

avatar image lmearsy Aug 14 '16 at 09:26 AM

Sorry it's been a while, but I have managed to get onto the computer once again.

I watched the video and did step by step.

There was one difference with mine and the videos and that was my "Remove from Viewport" is "Remove all Widgets" because there wasn't the one that was in the video, and I assumed that was the new name for the function.

But on that note the video still didn't help to get the game going nor did the resolution options work.

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question