Ashley's Forum Posts

  • Well, it's sort of an in-progress feature. You can use it, but it doesn't do everything we want it to yet.

    Configurations are just sort of tweaked versions of your project. So you could, for example, have two configurations: 'English' and 'French'. If you create the French config by copying the English, then go through and translate all the text objects to French, now you have two versions of your project in one - the French and English versions - and you can switch between them with the Configs bar.

    However it's pretty limited and I don't think it's actually particularly useful yet, it's something we want to expand on in future.

  • I sent them a message asking if they have a Javascript SDK.

    • Post link icon

    We're hoping to have support for 'fullscreen-in-browser' games which open in a new window/tab soon - I guess this could also support fixed size windows over 800px wide too.

  • — - turned out you didn't use the Flash action :) (replied to PM)

    kiyoshi - WebGL can color tint, but there's no good fallback for the 2D canvas, so we tend to stick to the lowest common denominator for now. Hopefully we can add it back in when we add WebGL shaders with fallbacks.

  • We decided to drop them from Construct 2 because they were confusing, difficult to implement and many people said they didn't use them anyway.

    Instead you can make multiple animations and organise them by folders, and use events to switch animation yourself. The 'is within angle' condition should be handy for this - e.g. 'Is within 45 degrees of 0 degrees (right) - set animation to WalkingRight' and so on.

  • Yeah, I guess the issue is 'stop loop' is different to 'break'. 'stop loop' finishes the current iteration.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • — can you post an example of the Flash behavior not working? Because it solves this problem perfectly and much more easily than the way you're trying to solve it, so we should fix that instead of your events...

  • Why not use the Flash behavior?

  • 'Repeat 1 times' does nothing, events run once normally anyway!

    Follow the logic of the events:

    Is sprite invisible?

    • yes, set it visible
    • stop loop does nothing since the current iteration will finish anyway

    Is sprite visible?

    • yes, we just set it visible in the last event
    • set it invisible again

    End result: nothing happens, the object is set visible then invisible immediately after.

    Why not use the Flash behavior anyway?!

  • You do not have permission to view this post

  • Welcome to the Javascript SDK forum! This forum is for javascript programmers looking to extend Construct 2 with custom plugins and behaviors.

    Javascript SDK documentation

    The SDK has its own manual section - you can view the SDK documentation at:

    http://www.scirra.com/manual/15/sdk

    Please feel free to use this question to ask anything not in the documentation or that you feel you need clarification for.

    Please test with the minifier

    One of the most common problems third party plugins and behaviors have is they are broken by the minifier. This is Google Closure Compiler working in ADVANCED_OPTIMIZATIONS mode. Please see this thread for more details. Before publishing your plugin or behavior, please export it with 'Minify script' enabled and upload it to a server to check it still works.

  • 1. I need a possibility to import/export save game data into separate file(s) (using external app). Is there a way to figure out webstorage's local data location for my external app?

    I don't think WebStorage has any particular location on disk, but HTML5 is getting a File System API which should help. Hopefully a plugin will appear for that in future.

    . What are the disc space limits for webstorage data stored on local machine? Are they browser-specific?

    It's browser specific, and I think it was around 5 mb... WebStorage was intended as a replacement for cookies.

    . Can the data stored locally be considered safe?

    I'm not sure when it gets cleared - you might want to test if clearing the cache frees it, because the AppCache (offline support) isn't cleared by clearing your browser cache I don't think. Also, as far as security goes, all webstorages on the same domain share the same storage. So all HTML5 apps on Scirra.com use the same storage.

    . I'm making an offline game with Construct 2 (not utilizing any of the HTML5 features).

    What do you mean by making a game in Construct 2 not using any HTML5? Games in Construct 2 use HTML5 specific features (like canvas) to run at all, you can't run a Construct 2 game without HTML5.

  • With the polygon tool set, try:

    right click -> set to bounding box

    right click -> apply to whole animation

    Doesn't that do what you need?

    Also are you saying 'reload from disk' resets all collision masks? It shouldn't do that, I guess it's a bug if it does - post it to the bugs forum if so so I don't forget...!

  • You do not have permission to view this post

  • You do not have permission to view this post