loyalpenguin's Forum Posts

  • 13 posts
  • Ashley were you able to try the code yet? I did post something in the Microsoft forums to see if they could provide some insight.

  • Ashley I did try it, unfortunately it didn't fix the problem. I'm not sure how I can send you a Visual Studio project, but it is pretty simple to reproduce the problem.

    Pretty much just add a text object to the screen and set its text to the number of touches. Then just export as a Windows 8 project. After you export it add a reference to the Microsoft Advertising SDK inside the head section like so:

    <script src="/MSAdvertisingJS/ads/ad.js"></script>

    After you do that add the following html next to the C2 canvas like this:

    <!-- The canvas the project will render to. If you change its ID, don't forget to change the

              ID the runtime looks for in the jQuery events above (ready() and cr_sizeCanvas()). -->

              <canvas id="c2canvas" width="1366" height="768" oncontextmenu="return false;" onselectstart="return false;">

                  ?The browser appears to have HTML5 disabled. Try checking the compatibility settings.

              </canvas>

         

            <div style="position:absolute; width:100%; bottom:0px;">

                <div id="myAd" style="margin-left:auto; margin-right:auto; width: 728px; height: 90px; z-index: 1;"

                  data-win-control="MicrosoftNSJS.Advertising.AdControl"

                  data-win-options="{applicationId: 'REPLACE-WITH-APPLICATION-ID', adUnitId: 'AD-UNIT-ID'}">

                </div>

            </div>

    Take note I got the instructions from here:

    msdn.microsoft.com/en-us/library/hh506343(v=msads.10).aspx

    Pretty much just run the project after that, touch inside the canvas and drag until your on top of the ad and release. Then touch the screen again and it should increment the amount of touches. You might be right about it being a Win8 thing. I just wish they had a work around for it.

    Hope this helps.

  • Ashley Sure thing. I'll let you know what happens.

  • Yes, I'm using Letterbox Scale.

  • Hi I've been developing a few games specifically for Windows 8 and noticed a small problem with the touch plugin.

    Basically when you add an advertisement inside the html page generated by Construct 2 and you run it on a Windows 8 machine everything works fine. But if you touch and drag your finger over the ad and let go the touch ended for that particular touch never fires.

    Now basically for the game I'm making I only need to use one touch or Touch(0). What happens is the game doesn't work properly any more because when you touch the screen again it registers as Touch(1). And if you drag your finger over the ad again it increments to Touch(2).

    UPDATE: Also it is affecting the third party "Metro Plugin" whenever you request the user to purchase the app, the touch never ends.

    NOTE: You have to export the project as a Windows 8 project then open it in Visual Studio first. Then place the ad inside the generated html page from Construct 2.

    I did do a little test to see where exactly the touches are when a user touches the screen by drawing a sprite to that position. After you perform what I mentioned above the sprite appears where the last known touch occurred. If you hold it long enough it then shifts to where the new touch is.

    I originally though it was a Win8 bug, but the fact that Construct2 uses the last touch position randomly and then updates to the new touch position like 2 seconds later seems like the program.

  • I'm submitting this as a bug. In the meantime I'll let you know what I find out.

  • Hi I was wondering if it is possible to call a javascript function in my webpage from inside my construct2 game. Basically I need to send some data every so often to my web page.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If you follow "Performance Tips for Mobile Games" in the tutorials section you should be able to get your game above 30fps. I did submit a platformer that ran extremely low originally (about 10-12fps) and was able to bring it around 35-45 fps on average.

    My main advice would be to stay away from large transparencies (or opacity) and reduce particle effects.

  • I did do a little test to see where exactly the touches are when a user touches the screen by drawing a sprite to that position. After you perform what I mentioned above the sprite appears where the last known touch occurred. If you hold it long enough it then shifts to where the new touch is. This is looking more and more like a bug with Construct 2. I will shortly post a capx so you can try it out for yourselves.

  • Yeah I'm not sure why it doesn't fire. The worst part is that the touches never get reset until the app is closed. I did try this on a couple of other games in the Windows 8 store to see if it was just me messing up somewhere but it looks like everyone who put an ad and requires the first touch suffers from the same symptom.

  • I'm trying to port a game to Windows Phone 8 from Construct2 using the HTML 5/C# template and almost have everything done except handling the back button. According to the certification guidelines we have to handle back button a certain way (navigate backwards or pause the game if is currently in play).

    Now I did try to go the route of PhoneGap but they currently do not support WP8 only WP7 and even with that I was not successful in exporting it there.

    So this pretty much led me to using the url to transfer data from C# to my Construct2 project. By passing a value to the URL when the back button is pressed I could detect that in Construct2 and I would be able to respond accordingly. Does anyone know if its possible to detect if the url has changed in Construct2?

    Or is there maybe another way of determining whether the back button was pressed?

  • Hi I've been developing a few games specifically for Windows 8 and noticed a small problem with the touch plugin.

    Basically when you add an advertisement inside the html page generated by Construct 2 and you run it on a Windows 8 machine everything works fine. But if you touch and drag your finger over the ad and let go the touch ended for that particular touch never fires.

    Now basically for the game I'm making I only need to use one touch or Touch(0). What happens is the game doesn't work properly any more because when you touch the screen again it registers as Touch(1). And if you drag your finger over the ad again the same thing happens.

    Now to me this seems like a bug (which I'll probably report), but what can I do until a fix is in for this. Is it possible to reset the Touch plugin so the current touch gets set back to Touch(0)? Or maybe force it to always use Touch(0)?

    UPDATE: Also it is affecting the Metro Plugin whenever you request the user to purchase the app, the touch never ends.

    NOTE: You have to export the project as a Windows 8 project then open it in Visual Studio first. Then place the ad inside the generated html page from Construct 2.

  • Hi everyone. I've also created a game for Windows 8 called Robo Charms. You can find it in the Windows 8 store by searching "Robo Charms".

    As always I'm looking forward to downloading the games you all have made and leaving a positive rating <img src="smileys/smiley1.gif" border="0" align="middle" />. Thanks and keep up the good work.

  • 13 posts