2022 Developer Survey is open! Take survey.

Questions tagged [menu]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
19 views

Menu not disappearing after input

I am having some issues with the UI and the Input system. What I am trying to do is "simply" to make a menu appear and disappear upon pressing a certain key. To do so, I created an animator ...
user avatar
  • 176
1 vote
0 answers
12 views

How can I get my custom Unity editor menu items to work if they're in a package?

I'm trying to get new items to appear in Unity's Assets→Create menu. I'm defining these inside another project which is referenced as a package. The general goal here is to share my editor scripts a ...
user avatar
  • 125
0 votes
1 answer
344 views

Unity UI - Multiple Selection with Multiple Toggle Group

I am developing a game with Unity 2019 LTS. And there is a menu scene in the game. Player should select a character and difficulty level in that scene. Both of them have multiple options. For example, ...
user avatar
  • 1
0 votes
1 answer
29 views

How to queue a paid function to run in Unity after an IAP button purchase completes to fund it?

My app will feature tokens to fund some in app functions. If someone clicks a menu button to run a paid function and has insufficient tokens, they should be prompted with a new token purchase menu to ...
user avatar
  • 197
0 votes
1 answer
260 views

UNITY: How to LOAD save file from main menu

So I've created a simple main menu with a new game, load game, and quit game buttons. In the new scene where I've created pause menu save/load buttons work, I've created a new object and attached a ...
user avatar
1 vote
1 answer
104 views

Libgdx - overlapping stages - textbutton unclickable

I've created a few TextButtons for a menu that render on top of another stage area, however the textbuttons that i've created for menu aren't clickable or don't provide any events. The MenuComponent ...
user avatar
  • 11
0 votes
1 answer
77 views

How do I move/select menu options through UI joystick and buttons?

I have a working Menu system in my game. I am able to move across the menu using Up/Down arrow keys and select those options using the enter key. The problem is how do i get that arrow key ...
user avatar
  • 1
-1 votes
1 answer
445 views

How to create GUI or Menu for games?

I've advanced quite well in OpenGL and in graphics. However I lack a lot of experiences. I have had this question in my mind since the beginning of my venture, how do I create UI or Menu for my game?...
user avatar
0 votes
1 answer
394 views

How can I structure in-game menus?

I'm working on a multiplayer RPG using only C++ and SDL2. I've already made the main menu and a map editor, and I'm preparing to make the actual game. The main menu and map editor were easy to ...
user avatar
0 votes
1 answer
142 views

How to implement a component-based model for menus in Unity?

I'm trying to create a "sims-like" context menu when an item / game object is clicked. This comes as an add-on question from this question: How to design context menus based on whatever the object ...
user avatar
  • 118
0 votes
1 answer
521 views

How to disable MenuItem in play mode in Unity?

I created a function which snaps an object to pivot with a hotkey of Shift + S. When I play the game in which I run using Shift and move backwards using S I accidentally call the function. How can I ...
user avatar
  • 209
3 votes
1 answer
389 views

Create context menu in Scene view

I created some MenuItemfunctions for navigating, which are currently displayed on the menu toolbar. The C# code: ...
user avatar
  • 209
2 votes
1 answer
95 views

How can I change view to orthographic using a menu?

I'm writing the custom menu using MenuItem and I'm stuck trying to make scene view orthographic when 5 is pressed. What is the ...
user avatar
  • 209
2 votes
1 answer
757 views

UI/Menu that works with and without VR (Unity, WMR)

I'm working on an app that I want to be useable without and with VR (with a Windows Mixed Reality HMD like the Samsung Odyssey). For non-VR I'm simply using a canvas in "Screen Space - Camera" and a ...
user avatar
  • 267
1 vote
1 answer
744 views

How to make a horizontal scrolling menu in Game Maker Studio 1.4?

I know how to place the items you see in the picture, my problem is how do I move them? How do I know if the player is swiping right or left? I made the items with a ...
user avatar
1 vote
1 answer
4k views

My [MenuItem()] is not being added to the menu

In Unity 5, I created a ScriptableObject class which adds itself to the Main Menu: ...
user avatar
0 votes
1 answer
2k views

Create a game start-up menu screen with Lua/love 2d

I just got started programming games and decided to try out love2d since I'm learning lua. I was wondering if anyone knows how I can create just a simple 2-3 button menu when you start up the game. ...
user avatar
2 votes
1 answer
508 views

UI looks different between editor and in game

I am very confused about Unity's UI system. This is how my inventory menu looks in the Editor: And this is the view in game: Settings Can someone please explain why this happens?
user avatar
  • 541
1 vote
1 answer
2k views

How to find the minimum number in a float array C# Unity

i have a for loop that detects the position of every game object in a list and gets the difference between that object and an object anchored in the center and then stores all values in a float array. ...
user avatar
1 vote
0 answers
69 views

Implementing navigatable achievement menu in javascript

I am in the process of learning javascript for game design, and wanted to make a separate achievement page that the user can navigate to that will allow them to check their achievements on various ...
user avatar
  • 11
1 vote
0 answers
96 views

How to play a sound for a Game Jam Menu Template button in Unity

I'm using the "Game Jam Menu Template" plugin from the asset store in a project of mine and I'm having a bit of a problem with it. See, I'd like it so that a particular button in the menu plays a ...
user avatar
  • 131
0 votes
1 answer
64 views

Is there a term of art for the collection of non-gameplay screens or pages

Is there a term of art for the collection of non-gameplay screens or pages in a game. I am thinking of screens such as: title screen options menu (key bindings, volume, graphics quality) credits ...
user avatar
  • 5,986
0 votes
1 answer
133 views

Need help in making buttons for MenuScreen in Java

I'm making a Menu for my game and I made the MenuState(class) and made a MouseManager(class, implemented MouseListener and MouseMotionListener) and they are different class in different folder. Here ...
user avatar
  • 43
0 votes
1 answer
263 views

3D Menu Attached to an Object?

So I'm gathering information for my project, and one of the things I want to achieve is to create a very sophisticated crafting system and weapon modification but I want the weapon customization to ...
user avatar
  • 217
7 votes
2 answers
3k views

How to design a multi-step game menu system?

I am getting started with game programming. I am designing a game that starts by taking you through a series of menu screens. I am interested in learning how this is typically structured in ...
user avatar
  • 223
0 votes
2 answers
2k views

A single libgdx gamescreen with pop-up menu, getting ready, hud and game over?

Is it possible and practical to have only one screen, like a GameScreen class, where the menu, getting ready (plus instructions), hud (only score) and game-over screens can pop-up when needed. Can I ...
user avatar
  • 171
3 votes
1 answer
2k views

Unity, how do I pause the Audio in the Level? [closed]

I wanna pause the Audio if I press the Pause Button also, I need help.. Pause Script: ...
user avatar
0 votes
1 answer
376 views

Moving script not working after SetActive/Pause change

I have a pause menu for my game which instantiates a texture and sets a text frame to active and slides both objects onto the screen using the code below: Instantiating the menu texture and ...
user avatar
  • 23
1 vote
2 answers
2k views

Pausing the game

I've had a look around and kept finding about using Time.TimeScale = 0 to pause the game, although this is the normal way to do it, it is not exactly what im looking for. When my menu button is ...
user avatar
  • 23
1 vote
1 answer
3k views

Change screen from main menu to game

I'd like to know how I can change the screen from the Main Menu to the Game itself but im having quite the trouble and I would appreciate the help. What I want to do is when I press btn.Play it ...
user avatar
  • 29
1 vote
1 answer
840 views

Creating a Slide-Up Menu

How can I create a menu that slides up while "un-fading" as illustrated in this video? As you can see in the video, the menu also falls down a bit in the end which gives it a realistic feel. I ...
user avatar
2 votes
1 answer
109 views

Transitioning through menus in Unity: what is the best option performance-wise? [closed]

I'm making a menu manager and I'm not sure what should I do to make a transition from one menu to the other. What is better to be used performance wise? Here is the step in my mind. Simple enable or ...
user avatar
1 vote
2 answers
505 views

Unity: Interactive menu with sprites changing with buttons

I have a menu where the player gets to choose which team and kit he will use to play. However I don't really know how to change the sprite each time the left or right arrows are pressed. I already ...
user avatar
  • 305
4 votes
2 answers
1k views

How to create a native windows menu / ribbon for a DirectX 11 app

I need to create menu items on top of my DX11 windowed app - similar to most windowed applications (File, Edit, etc...). How can I achieve this ? There is a hMenu ...
user avatar
0 votes
1 answer
1k views

Screen management: How to switch between screens

How can I switch between different screens that implement Screen?
user avatar
1 vote
1 answer
169 views

Certain random content rendering differently

On the main menu of my game there is (obviously) several buttons. 2 of which, in different positions on different screens, render a different colour to the rest. As you can see below, "New game" ...
user avatar
1 vote
1 answer
93 views

Observer pattern for clickable 2D Elements?

So i am currently thinking about the best way to handle and implement clickable 2D menu elements in a very simple DirectX Game. I very much like the idea of having subscribers to a event where they ...
user avatar
  • 145
0 votes
1 answer
70 views

Button image on game menu is updating too slow

I'm using SDL2 and i'm facing a problem with my game menu buttons. Every time i detect that the mouse pointer is over a button of the menu i update the image of the button (from ...
user avatar
  • 1
1 vote
1 answer
500 views

Working out velocity/time based on physical pixels moved

In my game I integrate like so: (Please assume all variables to be declared) ...
user avatar
  • 1,897
1 vote
0 answers
2k views

How do I use CC_CALLBACK for external classes in Cocos2dx v3.2?

I've been having problems with using 'CC_CALLBACK_#' (i.e. CC_CALLBACK_0, CC_CALLBACK_1). It works alright if I am using it to call a function from the class (Using 'GameScene' class for this example) ...
user avatar
  • 11
1 vote
3 answers
5k views

How to make a horizontal scrolling menu in Unity 3d 4.5 [closed]

I want to make a horizontal scrolling menu that will hold the levels of a game but I have a little idea about how to make it so it would be very great if anyone help me with it.
user avatar
  • 29
0 votes
1 answer
7k views

How do I set a background image in OpenGL/GLFW?

I'm writing a simple 2D game with C++ and OpenGL/GLFW, and my current step is to create a menu. I finished with buttons, but I think it looks a little bit boring (with only 4 buttons and a black ...
user avatar
1 vote
3 answers
111 views

c - Starting an user defined function after the current one ends

The game I am creating displays a menu before starting, the user may select to start the game, or do some stuff. When the user selects an option, I need to call another function which actually does ...
user avatar
13 votes
2 answers
14k views

How do I make a pop-up window with Scene2D?

I have a main-menu screen with a logo and a bunch of buttons. When the Login-button is pressed, I pop up a dialogue asking for a username and password. This works fine, other than the "popping up". ...
user avatar
  • 276
-1 votes
1 answer
2k views

How to lock and unlock game levels? [closed]

In my level menu (I'm using libGDX), I would like to lock and unlock game levels. The idea is that after finishing the previous level, the player is allowed to tackle the next one. Can someone point ...
user avatar
  • 110
4 votes
2 answers
9k views

LibGDX MainMenu with ScrollPane - Select Level and press Play

In my level Menu, I am using tables that have images and text to identify each game level. Those tables are in a table that is inside a ScrollPane so the player can browse the levels available. Here ...
user avatar
  • 110
0 votes
2 answers
2k views

How do I switch between the game screen and score screen without redrawing everything?

I'm working on a multiplayer game in Libgdx and want to display the scores of say, the top 10 players on the map. The player should be able to checking the scores at any point during the game and ...
user avatar
4 votes
1 answer
1k views

How are game menus logically structured?

I've been struggling with making a game menu system in Unity for some time now. I spent time developing a way to help myself understand how game menus are connected together. Right now, I'm calling it ...
user avatar
  • 83
0 votes
2 answers
4k views

Unity3D : Retry Menu (Scene Management)

I'm making a simple 2D game for Android using the Unity3D game engine. I created all the levels and everything but I'm stuck at making the game over/retry menu. So far I've been using new scenes as a ...
user avatar
  • 85
2 votes
1 answer
694 views

C# XNA - How to create a menu with bools and textures?

I thought I could use bools to be able to select options in my menu. But the options should be textures. To show that an optino is selected I have 2 textures like ...
user avatar
  • 222