Open Surge Forum

A fun 2D retro platformer inspired by Sonic games and a game creation system

You are not logged in.

Announcement

Our community has moved to Discord! https://discord.gg/w8JqM7m

#1 2013-04-07 20:08:49

S32X
Member
From: Rochester, New York
Registered: 2012-03-18
Posts: 880
Website

What is the the Stage Select in text form.

Well I know that in .qst files, there are two formats I've seen so far.

-level
-<options>

what's the Stage Select version of this?

Offline

#2 2013-04-08 03:50:34

Alexandre
Administrator
From: Brazil
Registered: 2009-01-27
Posts: 3,300
Website

Re: What is the the Stage Select in text form.

the stage select screen will list, in alphabetical order, all .lev files located in levels/ folder, but not in its subdirectories.

Offline

#3 2013-04-09 20:07:40

S32X
Member
From: Rochester, New York
Registered: 2012-03-18
Posts: 880
Website

Re: What is the the Stage Select in text form.

That's not what I meant. I meant how do I jump to the Stage Select using a .qst file?

Offline

#4 2013-04-10 00:17:16

aronthehedgehog
Member
From: Lincoln, NE
Registered: 2013-04-05
Posts: 390

Re: What is the the Stage Select in text form.

Does any one know about the qst. Files jeez.


Not active much anymore.
The only things I do now is just let inspiration come to me when it's needed.
Also bad profile pic because I don't have anything else in mind.

Offline

#5 2013-04-13 00:43:00

Alexandre
Administrator
From: Brazil
Registered: 2009-01-27
Posts: 3,300
Website

Re: What is the the Stage Select in text form.

S32X wrote:

That's not what I meant. I meant how do I jump to the Stage Select using a .qst file?

you can't access the stage select of the engine via a .qst file

you can, however, create your own customized stage select screen. smile

Offline

#6 2013-04-13 02:45:04

aronthehedgehog
Member
From: Lincoln, NE
Registered: 2013-04-05
Posts: 390

Re: What is the the Stage Select in text form.

hmm... with the right components that is theoretical it is sort of hard though


Not active much anymore.
The only things I do now is just let inspiration come to me when it's needed.
Also bad profile pic because I don't have anything else in mind.

Offline

#7 2013-04-13 10:53:02

jobromedia
Member
From: Stockholm, Sweden
Registered: 2009-11-01
Posts: 1,072
Website

Re: What is the the Stage Select in text form.

The process wouldn't be that hard.

  1. Start by designing a global control object to respond to UP, DOWN, and ENTER

  2. Next up: Create an object to display stage images.

  3. Now create an object to display the stage text information. Name, act, author etc etc...

  4. When down arrow is pressed, find the next stage to display

  5. Opposite with the up arrow

  6. When enter is pressed then load the stage.

Offline

#8 2013-04-14 03:25:18

S32X
Member
From: Rochester, New York
Registered: 2012-03-18
Posts: 880
Website

Re: What is the the Stage Select in text form.

Alexandre wrote:
S32X wrote:

That's not what I meant. I meant how do I jump to the Stage Select using a .qst file?

you can't access the stage select of the engine via a .qst file

Yet we can have this?

// ---------------------------------------------------------------------------
// Open Surge Engine
// http://opensnc.sourceforge.net
//
// File:   quests/options.qst
// Desc:   calls the options screen
// Author: script by Alexandre, 2013-02-13
// ---------------------------------------------------------------------------

// quest properties
name            "Options screen"
author          "Alexandre"
version         "1.0"
description     "Calls the options screen"
image           "images/null.png"
hidden

// level list (in order of appearance)
<options>

Offline

#9 2013-04-14 13:43:16

Alexandre
Administrator
From: Brazil
Registered: 2009-01-27
Posts: 3,300
Website

Re: What is the the Stage Select in text form.

S32X wrote:
Alexandre wrote:
S32X wrote:

That's not what I meant. I meant how do I jump to the Stage Select using a .qst file?

you can't access the stage select of the engine via a .qst file

Yet we can have this?

Yes. In theory, the code for calling the stage select screen from a quest is already available (see src/scenes/quest.c), but I have deliberately disabled it. There's a technical reason for this. If you have a level that calls the stage select (via push_quest), and then you open the same level, which calls stage select again, you'll run into trouble, because of a technical reason. The same goes for the options screen, by the way.

If you design your own stage select screen, there won't be such an issue. I can enable the <stage_select> keyword, if you really need it (do you?), but to do that, somehow I have to kill the program if the described issue happens.

Offline

#10 2013-04-14 19:54:49

aronthehedgehog
Member
From: Lincoln, NE
Registered: 2013-04-05
Posts: 390

Re: What is the the Stage Select in text form.

huh yes it would work yet i find it a little hard to suddenly to kill the program therefore causing nano parser errors
and to think that's why there is keywords


Not active much anymore.
The only things I do now is just let inspiration come to me when it's needed.
Also bad profile pic because I don't have anything else in mind.

Offline

Board footer

Powered by FluxBB  hosted by tuxfamily.org