weisdaclick's Forum Posts

  • Thanks for the quick response but I don't understand what "Set the font size in relation to the scale" means. Can you explain further?

    Just to let you know I just want to have readable text on an iPhone and iPad.

  • Using r146.

    I just cannot see how text is scaled and after searching the forums I'm not sure this is possible. The tutorials say set the scale of a layer to 0 but I have tried that and many different values and they have no effect whatsoever.

    I have also set the Parallax of the layer to 0,0.

    Can someone tell me if scaling text is possible like on a HUD or am I chasing my tail here?

  • 0plus1 Thanks for the advice, I may go back to it when I get a chance.

  • 0plus1 I am not using any plugins at all so I am more than a little lost.

    I hit a wall with Ejecta, no-one had an answer for me. I asked the C2 guys and Ashley advised me to go with CocoonJS as that was supported - that is what I have done but I would like to have the option of using it as I read good things about it.

  • Anyone??

  • I am trying to find an answer for this too - anyone?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I have built my project with Ludei's Cloud Compilation service but I want this app to be iPad only.

    I set this up in XCode as Targeted Device Family and so on but after delivering the binary to Apple it says the app is for iPod/iPhone and iPad.

    Does something is Ludei's compilation service make it for all devices? Can I change this somehow?

  • Here is my error from XCode, perhaps someone can help with it.

    2013-09-19 12:46:23.372 Ejecta[11576:907] ReferenceError: Can't find variable: jQuery at line 16464 in c2runtime.js

    2013-09-19 12:46:27.730 Ejecta[11576:907] ReferenceError: Can't find variable: jQuery at line 16464 in c2runtime.js

    2013-09-19 12:46:29.053 Ejecta[11576:907] ReferenceError: Can't find variable: jQuery at line 16464 in c2runtime.js

    2013-09-19 12:46:29.553 Ejecta[11576:907] ReferenceError: Can't find variable: jQuery at line 16464 in c2runtime.js

    2013-09-19 12:46:29.804 Ejecta[11576:907] ReferenceError: Can't find variable: jQuery at line 16464 in c2runtime.js

    And the relevant lines in c2runtime.js...

    16460        instanceProto.onTouchStart = function (info)

    16461        {

    16462                 if (info.preventDefault)

    16463                         info.preventDefault();

    16464                 var offset = this.runtime.isDomFree ? dummyoffset : jQuery(this.runtime.canvas).offset();

    16465                 var nowtime = cr.performance_now();

    16466                 var i, len, t, j;

    16467                 for (i = 0, len = info.changedTouches.length; i < len; i++)

    16468                 {

    16469                         t = info.changedTouches;

    16470                         j = this.findTouch(t["identifier"]);

    16471                         if (j !== -1)

    16472                                 continue;

    16473                         var touchx = t.pageX - offset.left;

    16474                         var touchy = t.pageY - offset.top;

    16475                         this.trigger_index = this.touches.length;

    16476                         this.trigger_id = t["identifier"];

    16477                         this.touches.push({ time: nowtime,

    16478                                                                x: touchx,

    16479                                                                y: touchy,

    16480                                                                lasttime: nowtime,

    16481                                                                lastx: touchx,

    16482                                                                lasty: touchy,

    16483                                                                "id": t["identifier"],

    16484                                                                startindex: this.trigger_index

    16485                                                         });

    16486                         this.runtime.trigger(cr.plugins_.Touch.prototype.cnds.OnNthTouchStart, this);

    16487                         this.runtime.trigger(cr.plugins_.Touch.prototype.cnds.OnTouchStart, this);

    16488                         this.curTouchX = touchx;

    16489                         this.curTouchY = touchy;

    16490                         this.runtime.trigger(cr.plugins_.Touch.prototype.cnds.OnTouchObject, this);

    16491                 }

    16492        };

  • So you have the touch object in your project now and not the mouse object. Correct?

    Yes exactly, at first I added the mouse object to test on the PC and (once I found buttons did not work with CocoonJS) I created sprites for each button using touch.

  • I don't think buttons work with CocoonJS. I was told to use touch sprites. Maybe it's the same with Ejecta?

    Yes I am using touch sprites.

  • After throwing the towel in as I could not get my project to export properly with CocoonJS I am having issues with Ejecta.

    My project loads but touch does not work - buttons have no response. I had some code I had to hash-out to get it going:

    14725        var instanceProto = pluginProto.Instance.prototype;

    14726        instanceProto.onCreate = function()

    14727        {

    14728                 var self = this;

    14729                 if (!this.runtime.isEjecta)

    14730                 {

    14731                         jQuery(document).mousemove(

    14732                                 function(info) {

    14733                                         self.onMouseMove(info);

    14734                                 }

    14735                         );

    14736                         jQuery(document).mousedown(

    14737                                 function(info) {

    14738                                         self.onMouseDown(info);

    14739                                 }

    14740                         );

    14741                         jQuery(document).mouseup(

    14742                                 function(info) {

    14743                                         self.onMouseUp(info);

    14744                                 }

    14745                         );

    14746                         jQuery(document).dblclick(

    14747                                 function(info) {

    14748                                         self.onDoubleClick(info);

    14749                                 }

    14750                         );

    14751                         var wheelevent = function(info) {

    14752                                                                self.onWheel(info);

    14753                                                         };

    14754                         document.addEventListener("mousewheel", wheelevent, false);

    14755                         document.addEventListener("DOMMouseScroll", wheelevent, false);

    14756                 }

    14757        };

    This final export process is doing my head in, been working on it for 3 days now - I thought this part would be no problem. <img src="smileys/smiley11.gif" border="0" align="middle" />

  • Yeah, I would take out the mouse code for sure, that seems to be the issue. Might as well turn off WebGL as well. I'm not sure it mattered if it was on or off in C2, when I tested it.

    Okay some progress, I hashed out that code then the project loads up.

    Now my issue is that touch does not work - my game loads and gives the player a few buttons to select options, none of them work.

    Here is my log output - looks pretty clean.

    2013-09-19 11:13:01.018 Ejecta[11468:907] Creating ScreenCanvas (2D): size: 1024x768, style: 1024x768, retina: yes = 2048x1536, msaa: no

    2013-09-19 11:13:02.219 Ejecta[11468:907] Loading Image: images/monster1-sheet0.png

    2013-09-19 11:13:02.221 Ejecta[11468:907] Loading Image: images/player-sheet0.png

    2013-09-19 11:13:02.223 Ejecta[11468:907] Loading Image: images/bullet-sheet0.png

    --- 300 similar lines follow ---

    2013-09-19 11:13:02.781 Ejecta[11468:907] Loading Image: images/buttonplayagain-sheet0.png

    2013-09-19 11:13:04.123 Ejecta[11468:907] Warning: CanvasContext already created. Can't change 2d/webgl mode.

    2013-09-19 11:13:04.123 Ejecta[11468:907] Warning: CanvasContext already created. Can't change 2d/webgl mode.

    2013-09-19 11:13:04.155 Ejecta[11468:907] GameKit: Auth failed: Error Domain=GKErrorDomain Code=2 "The requested operation has been cancelled." UserInfo=0x1cdc4dc0 {NSLocalizedDescription=The requested operation has been cancelled.}

    2013-09-19 11:13:04.160 Ejecta[11468:907] JS: Auth failed

    Sep 19 11:13:04 my-iPad Ejecta[11468] <Info>: 11:13:04.161666 com.apple.AVConference: GKSConnSettings: set server: {

            "gk-cdx" = "17.173.254.218:4398";

            "gk-commnat-cohort" = "19.173.254.220:16386";

            "gk-commnat-main0" = "19.173.254.219:16384";

            "gk-commnat-main1" = "19.173.254.219:16385";

        }

    2013-09-19 11:13:04.750 Ejecta[11468:907] CoreText performance note: Client requested font with PostScript name "ArialMT" using name "Arial" instead.

    2013-09-19 11:13:04.751 Ejecta[11468:907] CoreText performance note: Set a breakpoint on CTLogSuboptimalRequest to debug.

    2013-09-19 11:13:07.029 Ejecta[11468:907] Warning: No font with name OCR A Extended

    2013-09-19 11:13:07.044 Ejecta[11468:907] Warning: No font with name OCR A Extended

    2013-09-19 11:13:07.051 Ejecta[11468:907] Warning: No font with name OCR A Extended

    2013-09-19 11:13:07.053 Ejecta[11468:907] Warning: No font with name OCR A Extended

    2013-09-19 11:13:07.057 Ejecta[11468:907] Warning: No font with name OCR A Extended

    2013-09-19 11:13:07.066 Ejecta[11468:907] Warning: No font with name OCR A Extended

  • Does you app have or use the mouse object?

    Did you use the non WebGL version of the batch file? I'm not sure there is WebGL support yet.

    It has the mouse object - only for testing on the PC I think before the touch was implemented.

    Yes I used the non WebGL version of the batch file but my project has WebGL on.

    Think I should hash the mouse part of the code out? And export with WebGL off?

  • After switching to Ejecta I am getting an error in XCode and cannot get around it.

    I followed the tutorial here https://www.scirra.com/tutorials/627/how-to-export-to-ios-with-ejecta

    My build succeeds but the Ejecta splash screen comes up and then just a black screen.

    Here is my XCode log:

    2013-09-19 01:52:29.775 Ejecta[11240:907] Creating ScreenCanvas (2D): size: 1024x768, style: 1024x768, retina: yes = 2048x1536, msaa: no

    2013-09-19 01:52:30.985 Ejecta[11240:907] Loading Image: images/monsters-sheet0.png

    2013-09-19 01:52:30.987 Ejecta[11240:907] Loading Image: images/player-sheet0.png

    2013-09-19 01:52:30.990 Ejecta[11240:907] Loading Image: images/bullet-sheet0.png

    2013-09-19 01:52:31.055 Ejecta[11240:907] ReferenceError: Can't find variable: jQuery at line 14731 in c2runtime.js

    2013-09-19 01:52:31.083 Ejecta[11240:907] GameKit: Auth failed: Error Domain=GKErrorDomain Code=2 "The requested operation has been cancelled." UserInfo=0x1e04cf20 {NSLocalizedDescription=The requested operation has been cancelled.}

    2013-09-19 01:52:31.090 Ejecta[11240:907] JS: Auth failed

    Sep 19 01:52:31 my-iPad Ejecta[11240] <Info>: 01:52:31.092922 com.apple.AVConference: GKSConnSettings: set server: {

            "gk-cdx" = "19.173.254.218:4398";

            "gk-commnat-cohort" = "19.173.254.220:16386";

            "gk-commnat-main0" = "19.173.254.219:16384";

            "gk-commnat-main1" = "19.173.254.219:16385";

        }

    I had a look at line 14731 in c2runtime.js - here is the function:

    14725        var instanceProto = pluginProto.Instance.prototype;

    14726        instanceProto.onCreate = function()

    14727        {

    14728                 var self = this;

    14729                 if (!this.runtime.isEjecta)

    14730                 {

    14731                         jQuery(document).mousemove(

    14732                                 function(info) {

    14733                                         self.onMouseMove(info);

    14734                                 }

    14735                         );

    14736                         jQuery(document).mousedown(

    14737                                 function(info) {

    14738                                         self.onMouseDown(info);

    14739                                 }

    14740                         );

    14741                         jQuery(document).mouseup(

    14742                                 function(info) {

    14743                                         self.onMouseUp(info);

    14744                                 }

    14745                         );

    14746                         jQuery(document).dblclick(

    14747                                 function(info) {

    14748                                         self.onDoubleClick(info);

    14749                                 }

    14750                         );

    14751                         var wheelevent = function(info) {

    14752                                                                self.onWheel(info);

    14753                                                         };

    14754                         document.addEventListener("mousewheel", wheelevent, false);

    14755                         document.addEventListener("DOMMouseScroll", wheelevent, false);

    14756                 }

    14757        };

    The files on my Mac look like this:

    <img src="http://s24.postimg.org/8r5sixhhh/Screen_Shot_2013_09_19_at_2_06_50_AM.png" border="0">

    Any ideas what could be up here?

  • Sounds like you haven't copied the index.js file to the APP folder or you haven't run the (EjectaXporter_2d.bat) fnr to reaplace all the objects in the c2runtime.js file

    I have exactly the same error:

    XCode says "No Issues" but I just get a black screen after the Ejecta startup screen.

    My log says:

    ReferenceError: Can't find variable: jQuery at line 14733 in c2runtime.js

    I copied index.js to my App folder and I ran the batch file - just as the tutorial tells me here: https://www.scirra.com/tutorials/627/how-to-export-to-ios-with-ejecta

    Any ideas?