Noncentz705's Forum Posts

  • You could give the progress bar an id inside the editor and then reference it with your stylesheets.

    A trick for appending stylesheets without using javascript is to use the text action 'Set web font'.

    It can include multiple css files, one for each time you call the action.

  • Thanks at Ash , sorry for the late reply. It seems adding new parameters to actions and conditions causes errors as well? I've deprecated the old aces as a work around.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • So let's say I've defined an expression with two string parameters

    AddStringParam("Opt1","Option1","");
    AddStringParam("Opt2","Option2","");
    AddExpression(5, ef_return_string, "myFunc, "My Plugin", "myFunc", "My Function");
    [/code:fsil8fsp]
    
    and then in a later version of the plugins life, I'd like to add another optional parameter to the expression.
    
    [code:fsil8fsp]
    AddStringParam("Opt1","Option1","");
    AddStringParam("Opt2","Option2","");
    AddStringParam("Opt3","Option3","");
    AddExpression(5, ef_return_string, "myFunc, "My Plugin", "myFunc", "My Function");
    [/code:fsil8fsp]
    
    How would I add the parameter without breaking previous projects?
    I get errors (...expects 2 parameters not 3). 
    
    Could the editor just read the default value and slip it in if it's missing, 
    or is there a optionalstringparam or something similar so my expressions can still take 2 params but could take 3 as well?
    I don't think AddVariadicParams is what I'm looking for.
  • The images aren't viewable, it's hard to help without an idea of what you are trying to accomplish. Maybe you could look into the source of other plugins for help.

  • Sounds like problems with the minifier, try exporting with the option unticked

  • JSZip

    A C2 plugin that uses the JSZip library. Manage zip archives in the browser.

    Updated : 2015-5-17

    Features

    • Archive
      • Text -

        string

      • Images : GIF,JPEG,PNG -

        dataurl

      • PDF files -

        dataurl

    • Load & merge archives

      dataurl, tagname, ajax

    • Read data from archives.
    • Modify or remove files you've archived.
    • Invoke download of archives (blob, or dataurl)

    ACES

    [attachment=0:3uj6a95n][/attachment:3uj6a95n]

    DOWNLOAD

    Feedback is always welcome.

  • Forgot to tag Ashley

  • I have this situation where I need to override the mime type of a request where

    adding

    request.overrideMimeType("text/plain; charset=x-user-defined");[/code:1cyph9hy]
    to a modified version of the ajax plugin works fine for me. 
    Could I request an action to do this so I don't need to maintain a serpate plugin
  • Resetting layers may be useful as well, ++

  • DuckfaceNinja maybe look at firebase, it seems someone made a plugin for it as well.

  • Your sql logic is meant to be server side to prevent security breaches and ppl fuxing with your database , don't throw money at anyone for a feature like this, you'd be putting you and your users at risk.

  • What I posted is =what the repl returns if you were to type it into your browser console ...

    Use bracket notation to define/access the key name 'myvar-toto'

    window['myvar-toto'] = 'something';

    If the variable isn't meant to be global then you wouldn't attach it to the window object and may choose another

    var o = {};

    o['myvar-toto'] = 'something';

    This should be common knowledge if your planning a project with JS.

  • window['something-dash'] = "something"

    "something"

    console.log(window['something-dash'])

    "something"

  • obj = {'with-a-dash':1}

    { 'with-a-dash': 1 }

    obj['with-a-dash']

    1

  • Your array loads by swapping the size values. [4,2,1]

    Open the debugger and inspect your arrays or you can dump Array.asJSON to text object

    {"c2array":true,"size":[4,2,1],"data":[["right",0],["backward",90],["left",180],["forward",-90]]}