Tutorial: Sokoban clone - SkullKoBan :)

This forum is currently in read-only mode.
  • OK guy's I've created a small tutorial game. It's a Sokoban clone - you know the game where you push blocks around the level into their correct places.

    Just a note I'm not a Construct God or a decent programmer so there may be ways to do things a little easier than I have done in the .cap file.

    I was going to do an interactive video tutorial but:

    A. The software I was using wasn't quite up to it.

    B. I wasn't quite up to it

    C. I didn't want to do a commentry because my accent is a bit....erm....broad and if I started using slang halfway through, then we'd all be in trouble.

    So i've gone with a commented cap.

    <img src="http://i19.photobucket.com/albums/b170/mr_flibble_hhah/Games/SkullKoBan1.png">

    <img src="http://i19.photobucket.com/albums/b170/mr_flibble_hhah/Games/SkullKoBan2.png">

    <img src="http://i19.photobucket.com/albums/b170/mr_flibble_hhah/Games/SkullKoBan3.png">

    Subscribe to Construct videos now

    And the .cap, the EXE and the graphics can be downloaded from DropBox here!

    I am thinking of doing a part 2 with:

      Level Editor export to INI Level Loading via an INI file

    Comments,Suggestions and questions are Welcome.

  • Cap requires Lucid's SpriteFont plugin. Link to save searching:

    I've only had a quick look at the CAP, but it looks really nice - well organised, extremely well commented, and pretty modular too. Hope you don't mind if I post a link on my blog.

  • This is way cooler than Sokoban

  • Cap requires Lucid's SpriteFont plugin. Link to save searching:

    I've only had a quick look at the CAP, but it looks really nice - well organised, extremely well commented, and pretty modular too. Hope you don't mind if I post a link on my blog.

    Thank you GMG. And thanks for putting the tutorial on your blog . I have a link to it on my blog - Construct needs way more exposure.

    This is way cooler than Sokoban

    Thanks

    I might do a Boulderdash clone next. Maybe Skull-der-Dash.

  • Very nice tutorial, thanks!

  • I downloaded and installed Construct, then downloaded SpriteFont from provided link and put the Plugin .csx in the Plugin directory and the Runtime .csx in the Runtime directory both in the Construct folder. I put the SpriteFont 'Hello World' .cap and the SkullKoBan .cap in a separate directory and booted up the Construct app and tried to load them. The SpriteFont .cap loaded and ran fine, but when I try to load the SkullKoBan start.cap it gives me "Out of Memory". I'm running Vista and have 2 gigs of RAM. Any Ideas? Please?

    I realized I didn't have the Graphics directory with the start.cap , but I moved that and tried it, same thing. Then tried to load from the SkullKoBan directory and that didn't load either, same error. Any suggestions appreciated.

    EDIT:

    Okay, found the problem.

    The SkullKoBan start.cap needs to be opened with the latest unstable build which you can get from here:

    http://sourceforge.net/projects/constru ... e/download

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks for contributing to the community sir! This will be a help to many

  • Whoa. So you mean spritefont hasn't caused you any problems? That's awesome

  • Whoa. So you mean spritefont hasn't caused you any problems? That's awesome

    No.

    Only ever had one problem with Spritefont and I made a quick workaround and it worked perfectly. I use it all my projects/experiments/games.

    It's the User created plugin I use the most.

  • why thank you minor

    btw, do you remember what the situation was where you needed a workaround

    it may be possible to bring this plugin up to a status of "use it this way"

    instead of my normal policy as of late "don't use it"

    I never had problems with it either

    another question, have you ever used it with multiple layouts?

    everytime people had problems using the plugin, their caps were always very different than I would have made them. there might be a dependable way to use this plugin yet

  • why thank you minor

    btw, do you remember what the situation was where you needed a workaround

    it may be possible to bring this plugin up to a status of "use it this way"

    instead of my normal policy as of late "don't use it"

    Yeah I remember the problem. I had a global variable and depending on that variable Spritefont was supposed to write some text letter by letter, but the event never executed when the variable was that value.

    Pseudocode Example:

    If Global Variable = 1

    Spritefont write text "HELLO"

    If Global Variable = 2

    Spritefont write text "GOODBYE"

    If the Gloabal was 1 or 2 it would never write the text it should have, or would constantly write the text.

    Working version - http://dl.dropbox.com/u/1646976/writingtextworking.cap

    If you toggle out the Spritefont condition for checking the value "written" you can see the problem I had.

    another question, have you ever used it with multiple layouts?

    everytime people had problems using the plugin, their caps were always very different than I would have made them.

    Yeah I have used across multiple layouts in RogueLight. Using both global Spritefonts and a Spritefont per layer. The only problem I ever had with this was I missed destroying a global Spritefont at the start of a layout so it would show up at certain points in the level, but that was me being a numpty. I've also used it as an editbox for the level editor I created for Memorized and again I had no problems what so ever.

    there might be a dependable way to use this plugin yet

    In my opinion it is extremely dependable, maybe a little quirky if some can't get it to work as expected, but very easily used and very workable.

    I'll be using this plugin in all my projects until fonts get embedded into the .exe.

    If you need any more info or if you want some help making some examples to put in the Spritefont thread let me know.

  • Ahh Spritefont,

    how I love that plugin

    I've always followed a tutorial Minor made for me and never once had a problem.

  • Woop! Just stopped by to thank you for this wonderfull tutorial ... Many things to learn including the SpritePixel plug which is great. Thanks Minor!

  • Woop! Just stopped by to thank you for this wonderfull tutorial ... Many things to learn including the SpritePixel plug which is great. Thanks Minor!

    Thanks

  • edit: replied to wrong thread, sorry

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)