rafhelp's Forum Posts

  • OK Please delete this, it seems to work now after i recompiled the game.

  • I made a game. it has highscores. the plugin uses ajax (xmlhttprequest) to connect to a server and retreive data and parses xml returned to display it on screen.

    phonegap is great and free.

    it worked and i converted the game to apk file. i installed it to my phone.

    it loaded but then hung. it hung/froze at the point where an xmlhttprequest was called.

    Is there any know fixes for this. is this a known issue. Ive done a little research but this is something new. I read it may be something to do with the fact that as the game on the phone is an app and not called from a browser the reference to the url where the ajax directs to uses file:// instead of http:// ( I may be wrong)

  • Any way to create an "if ...then...else..." loop in terms of events

    EVENT---> If Condition is true -----> action1

        (subevent1) Else if condition false ----->action 2

        (subevent2) Else if condition is NULL----->action 3

    each subevent is ONLY called/executed if the previous or main event condition is NOT met.

    that would be good. As at the mo i have this problem:

    EVENT ----> if button clicked

    (subevent) if logged =0 (action) logged=1, set Text2.text to "logged"

    (subevent) if logged =1 (action) logged=0, set Text2.text to "Not logged"

    Now when i press the button regardless of whether logged=1 or 0 it will set the Text2 text to "Not logged"

  • Allow users to expand/shrink all sub events for top level events. to make it tidier.

    All i set all sub events, i can hide/shrink them so the layout is less cluttered

  • why is it so very slow in firefox. Is this the case with all games?

  • I develope a HTML5 web based game. Ive written a custom plugin for it. It uses an external Javascript file which has to be included in the server install.

    I export the game and upload to my server. Is my plugin code etc.. safe or can it esaily by downloaded, decompiled etc..

    Can I somehow obfuscrate the external js file I use in the plugin

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • When making a html5 game for android phone, what format do you export to also whats the best screen resolution and size to use for layouts

  • where is the reference manual for using things like random()

  • when you go from one layout to another, the properties container should update to show properties for the currently selected object/instance in the current/new layout, not the previous layouts...to stop confusion.

    Allow users to CREATE new 'group' folders within the "Object Type" folder. This will allow users to put for example all objects used ONLY in Layout1 to a new folder called "Layout1 Objects"

  • disable the popup notification after the export finishes or atleast give the option to do so

  • why, its simple question.

    i.e when you set the text value for text object using a string returned from an expression how do you specify new lines?

  • When debuggung I have to keep restarting C2.

    This is time consuming but need to reload the modified plugins.

    When i export HTML5 file i am asked for a output folder. I set this.

    BUT

    after i restart C2, that folder location is reset to "....New Project\"

    Is there anyway you guys can store the previous output location after shutdown and restart of C2??

  • when i try to set the innerHTMl from an expression that returns a string after selecting the expression the diaog gives error saying you cant use numbers only strings, BUT the expression IS a string.

    can you fix this

  • OK,

    so i have a script called myscript.js

    it has a function called setvars().

    in the runtime.js file i set some variables (global i think) like so

         var typeProto = pluginProto.Type.prototype;
    
        //our custom vars
         var name = "";
         var info = "";

    now i import the myscript.js file using %.getscript jquery function.

    when i call the new function setvars() i set the vars in it

    like so

    name="monica";
    info="nice";

    but these variable are not set in construct2 actually it causes some form of background error. So the question is how to get and set runtime global variables in external imported scripts?

  • I insert a text object called Text2.

    Now in an action I set the text of this to an expression from a plugin object called texter. (texter.setit)

    now setit sets returns text like this:

         exps.getinfo = function (ret)     

         {

              currentinfo=currentinfo.replace("& Newline &",Newline);

               ret.set_string(currentinfo);          

         };

    now currentinfo is a global javascript variable and where i want newlines i insert the text "& Newline &", now when I return the string to the Text2 object i replace all "& Newline &" with Newline. But it doesnt work.

    So the question is can you insert some text code to let construct text object know that there should be a new line here like maybe " line 1 \n\r line 2" would show on screen like:

    line 1

    line 2

    Oh how complex...