Ashley's Forum Posts

  • The Touch object has expressions to access the accelerometer!

  • I forgot to mention, you can code your own javascript in the plugin and behavior SDK, but it's not really suitable for casual coding, more for integrating APIs and creating new features.

    If you're interested in how it works under the hood, you can still browse the javascript code behind the plugins and behaviors, they're all in the folder rexrainbow mentioned.

  • modkva, XAudio2 is only in Construct Classic, not Construct 2, are you sure you posted in the right forum?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Oh, do you mean the collision polygon? Sorry, there isn't a way to type in its size yet. Also, we're aware undo isn't working for everything in the image editor, it's on our todo list.

  • If you mean the game data size - it's almost entirely object images. Sound also takes up a lot, but sound is streamed as you play the game so does not contribute to the loading time. 99% of the loading time is spend downloading images (Sprite animation frames and tiled background images). Everything else uses some data too, but it's so tiny in comparison you can ignore it (e.g. an event turns in to just a few bytes of javascript).

    Construct 2 estimates your game's size - it's in the status bar as "Approx size". It's basically the size of all your images plus audio, so it's larger than the amount needed to start the game (which is just images), but it's a useful indicator.

  • For #1: we don't want to do a script editor in the foreseeable future for two reasons - firstly, for HTML5 it would be snippets of Javascript, so suppose everyone uses snippets of javascript in all their games. If we made a different exporter that doesn't use javascript as a programming language, it becomes impossible to export all those games using code snippets to the new exporter, so it would make it impossible to use the new exporter for existing games. Secondly, scripting is a programming thing, and our focus is currently on the non-programming aspect.

    For #2: this is a common misconception. There is no code to look at. Construct 2 does not generate code for events - it generates a data model that is then interpreted. So you can look at what Construct 2 generates for events, but it's just a big block of data. Here's a small snippet of what Space Blaster's looks like without minification enabled (which deliberately makes the code unreadable):

    "Game events", [
         [
         1, "Score", 0, 0],
         [
         1, "Rockets", 0, 3],
         [
         0, [true, "Player and general"],
              [
                  ?[-1, cr.system_object.prototype.cnds.IsGroupActive,
                  ?null, false, false, false, false, [
                        [
                        1, [
                        2, "Player and general"]]
                  ?]]
              ],
              [],
              [
                  ?[
                  ?0, null, [
                        [-1, cr.system_object.prototype.cnds.OnLayoutStart,
                        null, true, false, false, false]
                  ?],
                        [
                             [
                             11, cr.plugins_.Sprite.prototype.acts.Destroy, null],
                             [
                             31, cr.plugins_.Audio.prototype.acts.Play, null, [
                                ??[
                                ??2, ["squaremotif1", false]],
                                ??[
                                ??1, [
                                ??2, ""]]
                             ]],
                             [-1, cr.system_object.prototype.acts.Wait, null, [
                                ??[
                                ??0, [
                                ??1, 1]]
                             ]],
                             [
                             31, cr.plugins_.Audio.prototype.acts.Play, null, [
                                ??[
                                ??2, ["mattoglseby - 3", true]],
                                ??[
                                ??1, [
                                ??2, "music"]]
                             ]]

    So I'm not sure you really want to do anything with that. From there C2 does call actual javascript functions which each plugin defines (@rexrainbow was describing this) but those are the code "inside" each condition and action and expression. If you like you can use Chrome's debugger and set breakpoints in these functions, but I still don't think there's much to gain from it - it tells you more about how each function works than what your events are doing overall.

  • Ah, it's a false positive, you can hit ignore and it works fine. Fixed for next build.

  • It sounds fine here, but in my testing I did come across something similar to what you describe - sometimes all the sound in Chrome is very stuttery, with lots of small gaps of silence. I think it's a bug in Chrome so we can't fix it ourselves, but I found usually just closing and reopening Chrome fixes it. Maybe they'll fix it in a future build.

  • Construct 2 should run fine without admin privileges. You can even install it from the setup program without admin privileges!

    If it's Windows 7 that's a bit surprising, my first guess would be it's an out of date version of Windows XP that isn't supported, but W7 should be fine. My next guess is the graphics card drivers - it might help to update the drivers, but you definitely can't do that without admin permissions... hmm!

  • This has been reported many times and the solution is always updating your graphics card drivers. It's a bug in the graphics card driver and usually it's fixed in a newer version of the driver. There's nothing we can do about it ourselves, we just have to put up with the fact the big graphics card corporations publish crappy drivers and don't make it easy to update :( what kind of graphics card do you have?

  • What browser are you using? Have you tried Chrome? It has the best audio support right now.

  • Construct 2 is a 2D game engine, it's really the wrong tool for making 3D games. You might come up with some cool experiments but I don't think you'll get as far as a full game.

  • Try the 'resize' tool on the toolbar at the top?

  • How does an area of transparency look bad?

  • You do not have permission to view this post