cow_trix's Forum Posts

  • Every X Seconds

    --< Create Object "Blood" at Player on layer "Background"

    Something like that?

  • Yes, if the SpriteFont object uses a large image it will take up a proportionate amount of memory. Put only the characters you need in the font image, and alter the "Character Set" field accordingly.

  • Loops are your friend, specifically For Each Element in the Array object. If you need an example give me a bit and I'll throw one together for you. If you don't know how loops work, check out this tutorial (shameless plug <img src="smileys/smiley2.gif" border="0" align="middle" /> )

    scirra.com/tutorials/40/basic-loops-and-arrays

  • Hey jaketakelake. I think you're misunderstanding how the JSON object works. JSON is a format for expressing arrays in a string.

    When you tell Construct to "Load from JSON string" you are supplying the value "examplelevel.json". However, this doesn't actually have anything to do with the file in your Files folder. It's just a literal string, so Construct attempts to parse "examplelevel.json" - which isn't a valid JSON string in itself - and unsurprisingly nothing happens.

    So, what are your options? You have two as far as I can see. You can use the AJAX object to request a JSON string from a PHP page, and store your levels in a server somewhere. This is a fairly simple solution if you have access to a server.

    Alternatively, if you are developing for desktop, you should be able to use Node-Webkit's File IO functions to retrieve the contents of your level.

    To reiterate: The Load JSON action requires a JSON string, which right now you are not providing. There is no way that I am aware of to access this file when it is in the Files folder.

  • Hey christina, sorry for the late reply, I've been travelling for the past few months. Newt is correct on all counts except for what "Set Count to 0" does. This event basically resets the generator. For instance, the generator may output the following:

    4 8 6 3 1 4 3 1

    Resetting the count after all these values are generated means that the next value generated will be 4, then 8, and then so on and so forth. Basically the same numbers will be generated.

    As for the problem with min/max, give me a bit to work it out. It's been over a year since I wrote this plugin and trying to understand old code is... fun.

  • Even unobfuscated, Construct's code is dynamically generated. It is not designed to be human readable. Nevertheless, it is just Javascript and if you know JS, you shouldn't be having problems reading the code. But remember - there's a lot of code, as the engine is very advanced.

  • Intriguing, but probably somehting that could be done automatically actually. Store the last compile date somewhere, compare that to the date-last-modified of the images, and if it hasn't been since the last compile then you don't have to recompress. I'd be very surprised if Ashley hasn't already thought of this, and it's just a matter of implementation.

  • Entry

  • Hey Rex, can't seem to download the MoveTo plugin.

  • IronRick - thanks!

    Zero6 - That's on the to-do list. Cheers!

    Sylvain - Interesting idea, it's on the list. Thanks!

    harrio - Thanks! I considered it, but literally 99% of the aesthetics of the game depends on the effects engine. I like the look, so I think I'll just put it in the bank until the mobile side catches up.

  • Hey guys. Here's a little procedural racing game I've been working on for a while. Tell me what you think!

    Play it Here!

    I actually originally intended it to be on a smartphone, but alas neither CocoonJS or AppMobi support Construct 2's Effects system, of which this game is a freakin' smorgasboard.

    Features include:

        Procedural, neverending track

        Two game modes, Arcade and Chill Out

        Dynamic, psychadelic background

  • Hey guys. Does anyone else get a milisecond pause before the music loops with this capx? I thought this issue was solved, but here it is again.

    dl.dropbox.com/u/1378330/AudioLoopBug.capx

    Still, it might be just my computer? But its on every browser. Hmmm.

  • Hey Ash. It solves the problem, and my project now compiles successfully. However I am still able to trigger the following exception:

    <img src="https://dl.dropbox.com/u/1378330/003.jpg" border="0" />

    Which is somehow triggered by the same block of events. I'll strip down the project and see if I can isolate the issue.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi Sheepy.

    This bug has already been posted here, and acknowledged by Ash. I believe he's working on it.

  • Any chance of a quick fix release, Ashley?