JohnnySix's Recent Forum Activity

  • << Play now >>

    Controls are Arrow Keys and Space.

    It started as a promo video for a remix I did for a Nick Carter song, which never got finished (It was far quicker to actually make the game in construct that it was to simulate the game with animation in flash!)

    Something of how it will eventually look (intro and all) can be seen in the youtube video.

    Youtube video :

    http://youtu.be/bIg03DPd_Vc

    Some shots of what it is so far. Layout/scale/size may change based on feedback.

    <img src="http://www.johnnysix.net/games/TakingOff/Preview02.png" border="0">

    <img src="http://www.johnnysix.net/games/TakingOff/Preview01.png" border="0">

    <img src="http://www.johnnysix.net/games/TakingOff/Preview03.png" border="0">

    Feedback appreciated, am wondering whether to speed the sideways movement of the ship up a little.

    Everything on screen including the stars is 8-direction movement and moves the opposite way to the ship to create the parallax.

  • So I've got a problem loading the array from the json string - for one you can't paste the json string into an instance variable slow as it contains double quotes.

    If anyone's interested in taking a look, I can PM the code.

    Copying the JSON from a text box works in the editor, but for some reason, with identical code, will not load within the game. :P

  • Here's the update! With a helpful suggestion from R0J0hound to work around a schoolboy error on my part- I now have the facility to both load and save the layouts via JSON.

    At the moment it's a simple 2 dimensional array, but if I can get it working correctly, there's no reason a 3rd can't be added, and perhaps using a string instead of a number, can assign several properties at once to the different blocks.

    Ideally I'd love for the editor to open the url of the game and launch it, but that may be a bit ahead of me as it'll mean sending variables via POST or saving via AJAX, neither of which I've achieved as yet.

    Here's a shot of a successfully loaded layout in the editor.

    <img src="http://www.johnnysix.net/games/Bang/Preview10.png" border="0" />

    At the moment the "save" button simply triggers a new tab/window with a download link (default Construct 2 Array JSON save behaviour) , which can then be opened in notepad, and pasted back into the text box offered on clicking the "load" button.

    I have a couple of problems to work through, if anyone has any suggestions.

    1: The textbox, once triggered, keeps focus even after clicking elsewhere on the canvas, meaning the backspace key to clear the layout n edit view no longer works, as the textbox is capturing keystrokes.

    Is there a way to turn off focus for a text box, or should I instead destroy it and create it each time?

    2: Can anyone remember the plugin for saving out cropped .png images from contsruct? My ultimate plan is to allow users to save a name + thumbnail image to be loaded at runtime from a second CSV/JSON file listing the user created designs.

  • Thanks so much! Simple things eh!?

    I got a fully functioning save/load function. :)

    <img src="http://www.johnnysix.net/games/Bang/Preview10.png" border="0" />

  • Was gonna say, for the kerning/spacing thing, without making it super complex, you could have an optional csv string property, with the widths of the characters in the same order, defaulting to monospaced as before if left blank.

    For example with numbers :

    Char set :

    0123456789.-

    Widths :

    16,5,16,16,16,16,16,16,16,16,3,16

    At least as a very quick and dirty workaround. :)

  • BTW - if you're able to make use of this - I don't have the ability to save .ico format - but thought something like this would fit in with the new Scirra icon scheme.

    <img src="http://www.johnnysix.net/games/SpriteFont.png" border="0">

    [edit] - just found a website to do it online - www.convertico.com/

    Ico format version

  • Click image to test :

    EDIT - [Oops Linked the game not the editor!]

    For some reason , even though an identical loop is used to create the main layout ( Press space to fill with red blocks, backspace to clear) , when it does the same for the thumbnail image, if fails to draw the last line.

    I'm doing nothing different in the smaller loop, other than changing the positional offset/scale on the output, the reading via two loops is still the same.

    You can see in the example image I've drawn a green border on the perimeter which is written to the array, however it fails when output again to the thumbnail size ( as you can see the bottom green line is misisng)

    Download the CAPX

    The capx uses Mipey's Sprite Font plugin - which I'd recommend everyone has. :)

  • It's stopped happening since I changed the size of the font, however in the picture I linked, I had the same effect as he described.

    I'll dig out the capx and pm you a link.

    Essentially the 'flash' occurred each time I spawned an object (sprite) with an effect on ( in this case additive ).

    Here's a link to the latest version, using the pixel font "bienvenu"

    http://www.johnnysix.net/games/Bang/

    <img src="http://www.johnnysix.net/games/Bang/Preview06.png" border="0">

    <img src="http://www.johnnysix.net/games/Bang/Preview05.png" border="0">

  • I'll give it a go, thanks! I was hoping to use CSV as it'd mean data as easily editable outside the program, but not a massive issue.

    Keep up the awesome work. :)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • More to come! <img src="smileys/smiley17.gif" border="0" align="middle">

    Working on an editor, so people can hopefully submit ( or just play with ) their own creations.

    I have plans to add more blocktypes, and I need to figure out the simplest method for saving out the block data, but progress is being made slowly but surely.

    Give it a whirl here : www.johnnysix.net/games/BangEdit/

    <img src="http://www.johnnysix.net/games/Bang/Preview07.png" border="0">

    <img src="http://www.johnnysix.net/games/Bang/Preview08.png" border="0">

  • Hmmm, here's a demo of what I'm doing - right now it's stored in an array - it's just a question of how to save it out and load it in as elegant a fashion as possible without too many complications. <img src="smileys/smiley1.gif" border="0" align="middle">

    http://www.johnnysix.net/games/BangEdit/

    In my haste I created a completely new project for the editor, and I don't think it'd be that easy to copy/paste it all across, or if it's possible at all.

    I guess saving to an external file, then opening of a url from the editor and sending a variable via the url to tell the page/game loaded to grap the corresponding .csv/.xml is what I'll be doing.

    <img src="http://www.johnnysix.net/games/Bang/Preview07.png" border="0">

  • I read through all pages, and I couldn't find any reference, if I've repeated a previous question apologies!

    So - I was thinking I could use this to create 3d array (row,column,page) , with the x/y storing a number/string to reference a particular tile, and the page to reference the level loaded.

    I just have one question though, can you look up rows/columns without using strings as headers for row/columns?

    I.E.

    CSV.At(1,2)

    rather than

    CSV.At("THIEF", "ATK")

    I did try, but I got an error saying it requires a string not an integer - so was wondering if there was a different action perhaps?

JohnnySix's avatar

JohnnySix

Member since 3 Mar, 2012

None one is following JohnnySix yet!

Connect with JohnnySix

Trophy Case

  • 12-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • RTFM Read the fabulous manual
  • Email Verified

Progress

16/44
How to earn trophies