KrushBrother's Recent Forum Activity

  • Well, I'm still enjoying playing with this, and have managed to get a decent test level editor working, but that was just a way of getting to know the S plugin.

    Now I'm ready to start on the level editor for the actual game, I want to approach it a different way.

    What I want to do is have Super called "LevelPack" (for instance), and in that Super have many "levels", each of which will comprise of:

    2D array1 (32x20) - numerical array

    2D array2 (32x20) - numerical array

    2D array3 (32x20) - numerical array

    2D array4 (32x20) - numerical array

    2D array5 (32x20) - numerical array

    Level Name - String

    etc

    In other words, I want to use S like a standard 2d array for the level data, on several layers, along with things like Strings for the title of that level, etc, and have each set of this data in it's own "level" Super, and all the "levels" contained in one "LevelPack" Super, so it can be packed up and encrypted, and when loaded into the game, I can access each set of level data, and read it in a way to build each level when needed.

    I can't see any simple way to use S for 2D arrays, or any tutorials on this.

    Maybe I'm over-thinking it, and it's right in front of me.

    Any help appreciated.

    Cheers,

    Krush.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I prefer WE7.

    I've been with them since the beginning, and haven't found any others that work as well for me.

    Krush.

  • Ah, another image manipulator bug perhaps?

  • Not sure if it's just the pseudo code you've posted, but it doesn't look like you're checking the value at x,y, but instead just using a single currentindex.

    Other than that, check you're using the correct type of mouse coords.

    It looks like it should work otherwise.

    Krush.

  • Well, I've had a play around with various tests of saving data, both unencrypted and encrypted, and it looks like it will fit the bill nicely.

    I'm now looking at your example of a level editor, before I start adapting my current editor for use with S, but I'm wondering if I am indeed using an older version of S, as I feared in the above post, or whether I'm missing something.

    <img src="http://dl.getdropbox.com/u/1013446/s/ondrag2.png">

    It's the .tt("blue") part of the create object that I can't fathom.

    I've tried writing it as an expression, but it won't accept it.

    If I have a criticism of S, it's that the description in the editor doesn't match the output text, so when trying to follow a guide like your level editor, it's hard to see which command you're supposed to use.

    Anyway, am I using an old version of S, or is there a simple answer to my problem?

    Cheers for any help.

    Krush.

    Edit: Ok, looking at your example cap, I can see that it's S.tt("blue"), which of course makes sense, but it wasn't that clear in the editor with the S icon in-between the S and the .tt.

    Kudos on the plugin though.

    The deeper I dig, the more uses I can see for this.

    Why didn't I look at this ages ago? lol

  • Thanks Lucid.

    I've just had a quick look at the tute, and I can see that it's going to be perfect for what I want, and shouldn't be too difficult to use (although I will be making regular saves and backups until I get it working 100% )

    I wouldn't mind a link to the very latest version though.

    I'd hate to download an outdated version that gives me problems.

    Krush.

  • I haven't taken a proper look at C2 because of the absence of an .exe exporter (let's not go over old ground, we've already been there), but I see no reason why C2 wouldn't be better than C1.

    They've learnt a lot whilst writing C1, and when all the features are in place I'm sure it will be great.

    I may even give it a try sometime, but probably not, because of the absence of....ahem.

    the fact that pc gaming is shrinking

    Lol, the death of the old grey slab has been greatly exaggerated over the years.

    I remember about 10 years or so ago, we were being told that the PC was on it's way out by the media in every corner it seemed, and with the likes of Command & Conquer, PC games kept hitting the top of the charts.

    We saw a similar thing 4 or 5 years ago from the media, including the UK TV Teletext magazine "GameStation" where the PC was being given it's last rites.

    And now once again, no doubt from a narrow poll that doesn't reflect the full demographic, we hear that the PC will not survive the next generation of games consoles.

    Hmm, MineCraft anyone.

    Krush.

  • Once again, I owe you Pixel.

    Thanks.

    It's good to know that I should persevere if I get crashes with it, as it could be errors in my code.

    Without that knowledge, I would probably blame the plugin, and stop using it.

    My level editor has 5 layers, different sprite sheets of 128 sprites for each layer, as well as level name, author name, and other special instructions specific to the level, so cramming all that into one object/file per level sounds just what I'm looking for.

    I owe you another pint.

    Krush.

  • Having almost finalised the level format for my side-project, I'm going to be looking to save the level data in a binary format, either encrypted or normal, and I think I remember someone mentioning that the S Plugin is useful in this regard.

    I don't have the S Plugin, as I haven't needed it up to now, so I was surprised to see that it wasn't in the list of completed addons.

    Which begs the questions;

    a) Will the S Plugin do what I need, saving a mixture of numerical and text data to a binary file, and allow me to load it back?

    b) Is the S Plugin finished and stable, and can it be relied on in a game?

    Krush.

  • Don't take it personally.

    I'm sure Ash is just trying to be fair to those who gave money to Construct 0.x.

    Although I do agree with "Dead" on this one.

    Donations are just that, and even as it stands, Construct 0.x is very useful and worth a few quid.

    Unless someone gave hundreds of pounds, which I doubt anyone did, then I don't think they are "owed" anything.

    Krush.

  • ....I hope they realize to make FIRST the BASICS RIGHT before making all kinda fancy futures,....

    I couldn't agree more.

    Too many broken basics that we thought were going to be fixed.

    Krush.

  • There was something in the back of my mind that said that this wasn't as straight forward as it seems, which is why I made this thread, but it went very smoothly.

    I found several old threads discussing this before I saw your reply, and even found one that I started (similar question for a totally different reason), and there was a lot of talk of how buggy the image manipulator is.

    It seems that some of it has been sorted, as you no longer need to flip the cropped area.

    I did have to have a separate sprite to hold the full image, as crop did indeed crop the image loaded, so instead of loading the main image again for each loop iteration, I just copied it over from the holding sprite.

    Many thanks for the nudge in the right direction.

    Both the level editor and the game now have fully moddable graphics.

    Krush.

KrushBrother's avatar

KrushBrother

Member since 24 Sep, 2009

None one is following KrushBrother yet!

Trophy Case

  • 15-Year Club

Progress

15/44
How to earn trophies