septeven's Forum Posts

  • Hey a problem of javascript again ;)

    I did a condition

    pluginProto.cnds = {};

    var cnds = pluginProto.cnds;

         

    cnds.ConfirmOKclicked = function ()

    {

        if (confirmation=1)

        {

        return true;     

        }

        else

        {

        return false;

        }

    };

    confirmation is a var (its value change via actions) that I defined at the beginning of the runtime as following:

    var confirmation;

    I tried too:

    var confirmation=0;

    The problem is when the condition is used, from the beginning of the application, the return is obligatory true instead to be false...

    Thanks

  • Sorry for it ;)

  • Finally, I figured out. I already did three options for my plugins, and it works. Thanks you all.

    I may share it when it'll be finished.

  • There's none for now. I think Kyatric is working on.

  • If I well understand, PhoneGap needs an AppleDev Account to build IPA file. Because I usually build app for only personal use (for now), I don't really want to pay $99 for it.

    With Sentenza, I can directly export as IPA file. But maybe I'm wrong and PhoneGap can export directly to IPA files. If it does, I'll reconsider my use of Sentenza.

    Otherwise, I put a Firefox screenshot to show you that not only cause of Sentenza. All html5 files that I've exported from C2 R68 have this popup persistant....

  • Here is the problem which is really persistant, and annoying....

    <img src="http://nt2k1.free.fr/c2_error.jpg" border="0" />

  • sorry to up this thread but... <img src="smileys/smiley24.gif" border="0" align="middle" />

  • Thanks you Kyatric, I'll read it and take a closer look to JS.

  • Yes I'm totally agree. But I'm curious, and I've worked for many years on Multimedia Fusion (and I still do) from clickteam, so I understand all basics of construct (which are not so different).

    As I already explained, I don't do games but personal/professional apps, and unfortunately, C2 hasn't got already enough of plugins for that kind of using. That's why I try to add just some really simple features (as an input dialog)

    That's my way of discovering ;) I can understand quickly javascript, as C2, but I'm not sure to well understand the way that plugin scripting and original javascript language are linked... You know what I mean ?

    Merci ? toi ;)

  • I'm trying to do the same thing with "prompt" command.

    I would know (because I didn't find the answer, in the SDK or on the web)

    how to recup a value (string or numbers) from the prompt ? I would like to use it as expression, as get text of the text object.

    In the same time, is it possible to know if a button of the prompt command is clicked ?

    Thanks a lot for your help

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Both :)

    I'm gonna take a look to that right now. Thanks

  • I'm juste learning very basic plugin writing.

    I try to make an alert with the text that be inputed in the addstringparam.

    So here is my action in the edittime.js

    // Actions

    AddStringParam("Set the text", "The text to set in the alert box.");

    AddAction (0, 0, "Set text to display", "General", "Display: {0}", "Display text in an alert box", "SetText")

    and here is my action in the runtime.js

    // Actions

         pluginProto.acts = {};

         var acts = pluginProto.acts;

         

         acts.SetText = function (text)

         {

              alert(text);

         };

    I don't really know javascript but have some basics. This way doesn't display anything.

    Can you help me to solve that basic problem.

    Thx

  • so am I the only one to get yet this problem?

  • Hey guys I really need help for this problem. I tried to figure out by myself but I didn't. ;)

    After long hours, I can understand that ONLY textboxes and buttons don't follow the scrolling. I'm on SCALE MODE and Unbounded Scrolling "YES".

    I tried a million of combinaison, and the only one which works is if I fixe the Scale rate at 0 and Parallax at 100,100.

    The problem is, and it's a big one, in my iphone, the "scale rate to 0" makes a zoom. I can see only left corner as if we zoom in 200%...

    I'm really, really, lost...

    Thanks for helping.

  • windows 7 PROx64