Scripts / [SOLVED] Campaigns?

Author
Message
osiem80
5
Years of Service
User Offline
Joined: 24th Jan 2019
Location: Poland
Posted: 10th Mar 2019 01:43 Edited at: 10th Mar 2019 17:26
Hallo fellas, i thought about one thing.Its possible to create 2 selectable campaigns in the main menu of the game?Lets suppose i created total 4 WWII levels, u play 2 levels as us soldier, 2 levels as soviet soldier.Now i wanna put them in 2 different selectable campaigns in the menu.
somethink like here in this video at the beginn
https://www.youtube.com/watch?v=fcGHjI51SiA
Added to the title.lua "new campaign" page

Now i have to create a newcampaign script, can u guys help me?i guess there should be two StartGame() funktions with 2 different images on the screen, a "soviet" and "USA" in my case.

osiem80

EDIT:Its even possbile or i just wasting my time?If yes tell me please..
What means
TITLE_NEW = 1
TITLE_LOADGAME = 2
TITLE_ABOUT = 3
TITLE_QUIT = 4
are theese constant funktions?not editible?And the numbers are just scrpit-shortkeys?
Generaly i wanted to create from the title_new and the start button another page with 2 campaign-start buttons within.But everytime i click start in the standalone the computer hangs.There is also "function title_free()
-- free resources" in title.lua, can i made my own page with this function?If yes, there could be a way to make a subpage within the title.lua?

The author of this post has marked a post as an answer.

Go to answer
PM
GubbyBlips
5
Years of Service
User Offline
Joined: 14th Jan 2019
Location:
Posted: 12th Mar 2019 06:23
Yeah, that's a great idea.
Just not 100% sure what you mean by "campaign"?
But I sure wish there was more possible variety to the
menu system. Dinosaurs once had them better maybe?
PM
Wolf
Forum Support
17
Years of Service
User Offline
Joined: 8th Nov 2007
Location: Luxemburg
Posted: 12th Mar 2019 15:52
An easy alternative is Xplosys chapter launcher!

LINK
osiem80
5
Years of Service
User Offline
Joined: 24th Jan 2019
Location: Poland
Posted: 12th Mar 2019 16:29 Edited at: 12th Mar 2019 16:34
Quote: "Just not 100% sure what you mean by "campaign"?"

i mean, something like 2 gameguru games compiled in one, with one main menu.U click the "start" button and istead of launching the game, there opens another "menu" with 3 buttons, for example "soviet campaign", "us-campaign" and "back to menu".With the first two u start the games.I hope its understandable, just look at the video in the first post.
Cybernescence sended me on priv an instruction how to edit the title.lua to get this effect, but not tried yet.
PM
Super Clark
GameGuru TGC Backer
13
Years of Service
User Offline
Joined: 4th Apr 2011
Location: UK
Posted: 13th Mar 2019 14:08
He Is talking about the 2nd menu option just like in Command & Conquer games, at the moment I'm pretty sure
the way GG is set up the might not be possible. I might be wrong but don't think i am.
PM
Belidos
3D Media Maker
9
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 13th Mar 2019 14:22
This post has been marked by the post author as the answer.
Just create a blank level (call it a lobby level if you would) then use sprites to turn the whole screen into a menu, using the cursor, and freezing movement of the player, then have it so that when you click one "button" sprite it loads you into one level, and if you click the other "button" sprite it loads you into another level.

I did something similar in 3D as an example for character selection a while back.


Primary Desktop:
i7 7700,k NV1070 8GB, 16GB 3200mhz memory, 1x 2TB Hybrid, Win10.

Secondary Desktop:
i5 4760k, NV960 2GB, 16GB 2333mhz memory, 1x 2TB Hybrid, Win10.

Laptop:
i3, Intel 4000 series graphics, 6GB memory, 1x 500gb HDD, Win8.1.
osiem80
5
Years of Service
User Offline
Joined: 24th Jan 2019
Location: Poland
Posted: 13th Mar 2019 14:50
Good idea!
PM

Login to post a reply

Server time is: 2024-12-22 14:17:53
Your offset time is: 2024-12-22 14:17:53