Ashley's Recent Forum Activity

  • How exactly do you want to scale the object? If you want an in and out effect, you could use the Sine behavior, for example.

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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.

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

Ashley's avatar

Ashley

Early Adopter

Member since 21 May, 2007

Twitter
Ashley has 1,830,347 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
  • x44
    Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

32/44
How to earn trophies

Blogs