Jump to content
fredou54

gui menu

Recommended Posts

Hello,
I would like to make a simple menu to start my game. I looked on the forum but I still do not understand how to do it (I'm not at all coder lua). if anyone could help me or a tutorial would be welcome.
Thank you for your cooperation and good game.
(I am French)

a small picture of my project

screenshot0.jpg

  • Like 2

Share this post


Link to post

There is a default menu in pretty much every project. Press escape when you run your game and you should see it appear. 

have a look at the main.lua.

Share this post


Link to post

like aggrorjorn said.
but also take a look in menu.lua

you can also take a look at my blog its C++ but very similar to how you would use lua.

 

Share this post


Link to post

I thank you for your help but I do not really understand the procedure to follow.
it's okay I'm going to fine tune my game in the meantime.

Share this post


Link to post

From what I can see your level design looks pretty nice. You might find a programmer here who wants to work with you on your game.

Share this post


Link to post

Do we really need to get a programmer to write a script for a start menu?

If we could just have some simple examples in the documentation that would help a lot.

 

  • Like 1

Share this post


Link to post
1 hour ago, Thirsty Panther said:

Do we really need to get a programmer to write a script for a start menu?

If we could just have some simple examples in the documentation that would help a lot.

 

There already is a start menu included in the default template.

Share this post


Link to post

Hello
there is a menu only by pressing esc. what i would like to do is a boot menu (a start game button to launch the game)
I do not know where to put it in the code (menu)
thank you

Share this post


Link to post

If you run the game from the editor the start menu is skipped and it launches right into the map. If you run the game outside the editor it starts in the way you describe.

Share this post


Link to post

I just tried to publish a standalone on my pc and I have no starter menu game (the game starts without a menu)
I will not bother you with that for the moment, I will resume my level design and come back later on the subject.
Thank you for your help and good game.

Share this post


Link to post
On 13.01.2018 at 9:50 PM, fredou54 said:

I just tried to publish a standalone on my pc and I have no starter menu game (the game starts without a menu)
I will not bother you with that for the moment, I will resume my level design and come back later on the subject.
Thank you for your help and good game.

Hello. You need to delete "Map/start.map" in Main.lua

Quote

local mapfile = System:GetProperty("map","Map/start.map")

 

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...