x

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"

How to create map selection like CoD or Halo games?

Hi, I'm trying to make a map selection where it gives a user list of maps (Already Done) and upon pressing a button the game will load the user's chosen map. (What I'm currently struggling to do). Is there a way to do it in Blueprints or is C++ required to achieve this?

Product Version: UE 4.18
Tags:
more ▼

asked Jul 15 '18 at 01:17 PM in Blueprint Scripting

avatar image

WRTuL
3 1 2

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

6 answers: sort voted first
  • When clicked, make your map buttons set a Name variable to whatever you called the level in the Content Browser. This has to be exactly correct.

  • When clicked, make your load level button open the level saved in the variable. You could set the default value of the variable in the Details panel to one of the levels in case the user presses load level before selecting a level.

  • This image shows a basic setup:

Image

open-level.png (144.4 kB)
more ▼

answered Jul 15 '18 at 03:47 PM

avatar image

herobank110
231 1 3 7

avatar image WRTuL Jul 15 '18 at 03:54 PM

Thank you, it worked flawlessly. I can't believe it was that easy :D

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

Do you mean like fast travel or like select a level type of map?

more ▼

answered Jul 15 '18 at 01:24 PM

avatar image

Blackforcedragon
11 2 7 9

avatar image WRTuL Jul 15 '18 at 01:28 PM

No, I mean select a level type of thing :D Im talking about something like this: https://i.imgur.com/npibe0C.png where user chooses what map they want to play on. Once they press start game button like this: https://i.imgur.com/jtjkGAe.png I want the game to load the user's chosen map.

EDIT: Apologies for potato/small res screenshots.

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

singel or multiplayer?

more ▼

answered Jul 15 '18 at 01:32 PM

avatar image

Blackforcedragon
11 2 7 9

avatar image WRTuL Jul 15 '18 at 01:35 PM

Multiplayer preferred but I don't mind if it's single player.

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

I will tell you 1 way to do it, I'm using Bluepritn. Single playre: You can make a widget and add buttons to it, and make it so if the player press button 1 it will open level 1, and the same for button 2, 3 etc... Try it. Multiplayer: I don't know how multiplayer to work whit servers and online, but I think this is the a way to do it: for multiplayer will you need to make different servers and let players join.

more ▼

answered Jul 15 '18 at 01:48 PM

avatar image

Blackforcedragon
11 2 7 9

avatar image WRTuL Jul 15 '18 at 01:53 PM

But that's the thing, I only want to have 1 button to load the level. I'm looking to do something like this https://youtu.be/6It3H4eN3gQ?t=50 and then have the START GAME button load the level chosen by the player.

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

what do you mean whit 1 button to load the level? do you mean a button to load the playerr to a new level, or 1 button to make a select level menu?

more ▼

answered Jul 15 '18 at 02:00 PM

avatar image

Blackforcedragon
11 2 7 9

avatar image WRTuL Jul 15 '18 at 02:06 PM

Button to load the player to a new level. So lets say you have 4 map choices.

MAP 1 MAP 2 MAP 3 MAP 4

The player chooses MAP 3 but to load that map he needs to press the START GAME button.

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

Ok, you want something like this: When the player open a map, a menu will spawn in and the player can't select start game, back to select a lever or quit the game. If that is what you want,then I can help you. when the player is loaded to a new map a widget need to spawn in front of that player. You can lock the players keyboard, and the player can only start to walk or run when the button Start Game is selected. Will this help?

more ▼

answered Jul 15 '18 at 02:20 PM

avatar image

Blackforcedragon
11 2 7 9

(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