Ashley's Recent Forum Activity

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

  • 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

  • Lol, that doesn't seem to have changed anything... oh well, I'll try and come up with something else soon!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
Ashley's avatar

Ashley

Early Adopter

Member since 21 May, 2007

Twitter
Ashley has 1,772,789 followers

Connect with Ashley

Trophy Case

  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Forum Wizard Made 5,000 posts in the forums
  • Forum Unicorn Made 10,000 posts in the forums
  • Forum Mega Brain Made 20,000 posts in the forums
  • x126
    Coach One of your tutorials has over 1,000 readers
  • x74
    Educator One of your tutorials has over 10,000 readers
  • x5
    Teacher One of your tutorials has over 100,000 readers
  • Sensei One of your tutorials has over 1,000,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • RTFM Read the fabulous manual
  • x42
    Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

32/44
How to earn trophies

Blogs