JohnnySix's Forum Posts

  • You could test for the difference between angles of the line and the rocket being positive or negative, then have a sub event that interpolates in a positive or negative fashion.

    I did try smoothing it with LERP(Dash.Angle,Rocket.Bullet.AngleOfMotion,5)

    but lerp will only turn clockwise, so you'd need to filter into two sub events and test if the difference is positive or negative I think.

    That would smooth out the turning. :)

  • Hmm, it could do with some finess, but here's a capx

    Download

    I made a few quick changes, some instance variables etc.

    It marks the first dash and spawns the rocket there, it also deletes previous dashes once the rocket has exploded.

    I think there's still a bug with lerping angles, as lerping the angle to make smoother curves causes it to spin wildly as it only works in a positive direction it seems.

  • Working on this - a friend recently started teaching the basics of reading music - so I thought I'd try create something to practice with.

    Very basic at the moment (I need to add bass Clef to cover notes below C4), and add some lines in when they go off the stave, but it's mostly working.

    <font size="3">Play it here</font>

  • Strange, webGL is on and the demo posted works fine. Very odd.

    Just using Win 7 home Premium, Vanilla Chrome , no plugins.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I get the grey text, but on Chrome, everything else is a black background.

    Are the images large?

  • Is there a link ? Also would be interesting to see some work in progress graphics.

    Are you building it in modular sections? Can't really see a lot from what you posted.

  • Updated with some home-made 8-bit sounds and a new ship.

    Also changed ratio and scale.

  • Thanks for checking, how was the resolution? Should I make it a bit shorter? I purposely designed it so it was scale independent - so I could make it 4:3, 2:6,4:4 etc and it'd still work, albeit be a lot tougher if the vertical dimensions are reduced!

    Anyone check the video out? It shows what it will eventually look like.

  • Yeah, that's the webpage scrolling. It probably won't on fullscreen, it's 768 pixels high.

  • << 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