Topic: Level Editor I - creating your first level

Moved to the wiki

Last edited by Alexandre (2011-05-29 00:02:31)

Re: Level Editor I - creating your first level

Okay, nice tutorial.
Maybe it would be a good idea to have a boolean var in order to enable or not stage editing.

f.e:
bool      enable_level_edit;

If the stage is "official" then enable_level_edit = false;

Or something like that

Re: Level Editor I - creating your first level

Neoblast wrote:

Okay, nice tutorial.
Maybe it would be a good idea to have a boolean var in order to enable or not stage editing.

f.e
bool      enable_level_edit;

If the stage is "official" then enable_level_edit = false;

Or something like that

This feature is already available. smile You can't edit the Master Quest levels.

All you have to do is to add a line with the word "readonly" (no quotes) in the .lev file. If you press the F12 key when playing on a "readonly" level, the game won't let you access the level editor. Try that on the Master Quest (main menu -> custom quests).

Of course someone could edit a .lev file manually and remove the "readonly" flag. But then the user would be trying to deliberately modify the level, so I won't forbid that.

Re: Level Editor I - creating your first level

Ahh it's true I did not see it at first.
There are some stuff about the physics that need a little fixing, I could give assistance if you want.

Re: Level Editor I - creating your first level

Thank you. smile Some people already complained about the friction because the characters take too long to brake (on version 0.1.0). This will be fixed for the next version. The modification is simple: all one must do is to change a number in the source code.

Re: Level Editor I - creating your first level

I bet it is friction var in player.c
Reducing it a little would do it.
But how much exactly?

Re: Level Editor I - creating your first level

You're right, it's in player.c

I'm also changing some other stuff like the gravity and the teleporters, see here

Re: Level Editor I - creating your first level

Thankyou i'm trying my first level...:lol: is realy awesome! i always wanted to make a level cool

Re: Level Editor I - creating your first level

Oww.. Start game and press F2 to get level editor? Not working to me....

Last edited by SuperTails (2009-07-21 15:10:45)

Re: Level Editor I - creating your first level

I'm Have Version 0.1.1
But i'm not have level editor how to get them?

Re: Level Editor I - creating your first level

press F12

Re: Level Editor I - creating your first level

Been messing around with Open sonic since the Dreamcast release and i would like to thank you for making dreams come true and something truly "way past cool" big_smile having a blast with the level editor,living my child hood dreams,cant wait to try make some sprites and go nuts once i get used to it.

I cant thank you guys enough*thumbs up*

Last edited by mdlmemorybank (2009-07-29 03:16:56)

Re: Level Editor I - creating your first level

somehow I can't play opensonic.why?

Re: Level Editor I - creating your first level

Hello Alexandre
Can i use this level editor for the flash game? Please inform me.

Petrov Young

------------------
Come and enjoy movie in 'spam' and 'more spam'

Last edited by SilverstepP (2010-11-05 02:21:17)

Re: Level Editor I - creating your first level

petrovyoung wrote:

Hello Alexandre
Can i use this level editor for the flash game? Please inform me.

Petrov Young

Hello, Petrov. smile

This game is not related to flash.

Re: Level Editor I - creating your first level

I have created my first level without any problem by using your mentioned way. Now I want to create second level. How can I do it?

17

Re: Level Editor I - creating your first level

petrovlucca wrote:

I have created my first level without any problem by using your mentioned way. Now I want to create second level. How can I do it?

quick and easy way:

go to your open surge folder.
open the "levels" folder

with the right mouse button drag any level to an empty space in that folder
when you release the button a menu shows. choose "copy files here"

now you should have a level file named "copy of ...". rename it to something you want
open it

and delete everything after the end of the header

in the header you can edit the name, act number, brickset and background to whatever you want

save it and open it in O.S.

if your level fails to load or doesn't appear, you have done something wrong. start over

if you still can't open it in game, tell us what happened smile

Re: Level Editor I - creating your first level

Thanks for your nice tutorial KZR.  smile

But i can't open it, it continuously fails to load. roll

Last edited by shefamariam (2011-02-26 18:32:25)

Re: Level Editor I - creating your first level

shefamariam wrote:

Thanks for your nice tutorial KZR.  smile

But i can't open it, it continuously fails to load. roll

The process for creating a second level is exactly the same as creating the first one, however this time you will give it a name other than "Hello" both in file-name and within the level file.  You may also change the specifications of background, brickset, and music from a plain text editor with your .lev file loaded.

If I knew then what I know now I'd tell you that the story's true.  Cause whatever you do, it comes back to you.  -Slaughter, Burning Bridges

20

Re: Level Editor I - creating your first level

shefamariam wrote:

Thanks for your nice tutorial KZR. 

But i can't open it, it continuously fails to load.

maybe you deleted too much.

this is one of my headers, showing what your level header should have:

// header
name "Train Trial"
author "KZR"
version "1.0"
requires 0.2.0
act 2
theme "themes/train.brk"
bgtheme "themes/train.bg"
spawn_point 1192 656
music "musics/citychill.ogg"

everything below that is filled in by the level editor. if no bricks, objects, etc. are listed, then the level is blank, and should load fine. when loading a blank level you should press f12 to enter the editor, while your level's title is showing. otherwise your char dies because it falls off screen.

Re: Level Editor I - creating your first level

smile Thanks a lot everyone. I can open it in game. Thanks big_smile

Re: Level Editor I - creating your first level

petrovyoung wrote:

Hello Alexandre
Can i use this level editor for the flash game? Please inform me.

Petrov Young

------------------
Come and enjoy movie in 'spam' and 'more spam'

This guy is a spammer. If you see anyone edit like this, REPORT IT.

Re: Level Editor I - creating your first level

It is really a good post having a nice tutorial. i have created te first level and is working well but i can't edit this level. Could I expect a better answer?

Thanks.

Re: Level Editor I - creating your first level

Welcome jasonbill, nice to meet you smile

what is your problem?
Have you followed the tutorial from post 1?
that is the old version, look at post 20, maby this help.

Last edited by ssdw (2010-12-03 18:43:17)

http://ssdw.nl/forum/getforumpic.php

Re: Level Editor I - creating your first level

good

http://www.powersonic.com.br/downloads/gifs/sonic_32bits/sonicknucklesemeraldsma.gif