Skyline Editor related tips n tricks!

Menu scene of published game

Menu scene of published game

Postby SpiderMack » 15 Apr 2018, 20:01

Hi,

When we publish a game the starting scene is not our main scene we put on Game Manager.
It is another scene with some menu pointing to our main scene from GameManager if we press start.

Where is that "Menu start scene" ?
How to customize it's graphics and the menu ?
How to Load and Save a game with proper scene loading from the game saves ?
Is there some video explaining all that ?
User avatar
SpiderMack
Skyline Expert
 
Posts: 432
Joined: 02 Dec 2016, 09:15
Skill: Concept artist
Skill: 3D Modeller
Skill: Level Designer
Skill: Scripter

Re: Menu scene of published game

Postby SolarPortal » 16 Apr 2018, 12:40

Theres no video yet, however, i can explain a few of these.

Where is that "Menu start scene" ?

Ok, there is no scene with the menu.
When the engine loads it runs the game manager script, which exists outside of all scenes.
This calls the menu to load and is what also loads the scene by the name of "main" tag from the game manager panel.
If you want to load a different scene, then you just change the script to call the first scene.

How to customize it's graphics and the menu ?

Copy the GUI files and the GUI script that the game manager calls and then use the GUI editor to tweak what you want and then program what the menu does in the GUI script. Its that simple.
Use lua hooks if you want to call a GUI function from the main game manager thread depending if it exists yet with:

Code: Select all
if (functionname ~= nil) then
    functionname();
end


When creating a project, skyline now copies over all the relevant files for the script and game manager and add them to your project with a new name and renames the internals of the scripts to match.
I believe it also copies the GUI files too.

How to Load and Save a game with proper scene loading from the game saves ?

Very simple, have a look in the game manager for the load & save functions, these then hook with the GUI script which dynamically populates the lists.
As for the data, this is just an array you fill and spit out to JSON format.

Hope this helps :D

Edit: I will be writing some documentation on it all when i get a few of my main tasks sorted. :)
Conceive, Quantify & Do!
Skyline Game Engine - Lead Developer.
Please provide as much information as possible when asking for help.


Specs: OS: Win 10 64bit, CPU: Intel i7 3770 3.4ghz x 4 core(8 threads), GPU: Nvidia GTX 1060 6GB, Ram: 16gig DDR3, Windows on 250gb Samsung Evo 860
User avatar
SolarPortal
Skyline Founder
Skyline Founder
 
Posts: 3041
Joined: 29 Jul 2012, 15:56
Location: UK
Skill: 3D Modeller
Skill: 2D Artist
Skill: Programmer
Skill: Level Designer

Re: Menu scene of published game

Postby SpiderMack » 16 Apr 2018, 13:17

Could Skyline do it the common way ? The main scene in GameMamager would be the starting scene.
Some games can start with some intros and no menus until you press start.
I'm not saying it's a bad idea to have a default menu scene, it's good for most games.

About save and load on the menu , what is saved when you play the game ?
Is there some tutorials about that save and load function ?
If you are in scene 10 and save the game, does the load menu loads that scene 10 ?

I wish we had some video tutorial covering how to customize the menu and the save load system.
User avatar
SpiderMack
Skyline Expert
 
Posts: 432
Joined: 02 Dec 2016, 09:15
Skill: Concept artist
Skill: 3D Modeller
Skill: Level Designer
Skill: Scripter

Re: Menu scene of published game

Postby planetX » 16 Apr 2018, 16:28

SpiderMack wrote:I wish we had some video tutorial covering how to customize the menu


The menu is made in pseudo html/css. You can find zillions of tutorials out there, just be aware that it's css2, so no fancy stuff allowed.

My specs: Windows 10 - Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz - 16 Gb ram DDR4 - NVIDIA GeForce GTX 960M 4 Gb

planetX
Skyline Ensen
 
Posts: 198
Joined: 28 Nov 2016, 18:27
Skill: 3D Modeller
Skill: Level Designer
Skill: Concept artist
Skill: Great creative
Skill: Programmer


Return to Skyline Editor

Who is online

Users browsing this forum: No registered users and 1 guest