BluePhaze's Forum Posts

  • On a side note in case it wasn't pointed out already... Ashley is a man. So is Arima... :)

  • Use an else instead of another condition. So do if collide with collision box > If going right, go left > Else Go right

    Just like in the basic platformer tutorial

  • 2 options:

    1. Change it in visual studio

    2. Get windows phone 8 plugin as it has many options for your project as well.

  • Ludei has a splash screen that shows up on all games and can flash for a bit.

  • A different sprite is used because it keeps the same shape and size no matter what animation you are doing which makes things much easier. Having a different shaped/sized collision box for each frame of your characters animation can cause all kinds of issues.

    For example when you run into an object if the collision box changes shape because of your animation then you might suddenly find your character overlapping or stuck inside of or on another sprite. Using a rectangular collision box that does not change shape makes it much easier to have predictable outcomes to various scenarios.

    For example when running or jumping if the characters arms or legs move, then the collision box for them would move also increasing the chance that they get stuck in another object when you collide with it.

  • Feel free to check my tutorials on wall jumping and double jumping as well, you can find the one in my signature, and it has links to my other tutorial as well. You can do just about anything with the platform behavior. My just released game uses the platform behavior with my own logic to tweak and add new functions to it like air dashing, ground dashing, and sliding... You can see a video of my current game which should give you some clue as to some of the things you can do with the platform behavior and some creativity:

    [tube]http://www.youtube.com/watch?v=ZKQAYlsODlA[/tube]

  • Glad to be of assistance!

  • is in touch and is on floor are the combination you want

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Pode how would I go about representing the following div with your plugin:

    <div id="myAd" style="position: absolute; top: 53px; left: 0px; width: 250px; height: 250px; z-index: 1"

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

         data-win-options="{applicationId: 'd25517cb-12d4-4699-8bdc-52040c712cab', adUnitId: '10043105'}">

    </div>

    My assumption is that I would put everything in the "" after style= into the style property of the control. so for example I would paste:

    position: absolute; top: 53px; left: 0px; width: 250px; height: 250px; z-index: 1

    And then in the inner html property I would paste:

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

         data-win-options="{applicationId: 'd25517cb-12d4-4699-8bdc-52040c712cab', adUnitId: '10043105'}"

    Is that right? I am trying to use this to display the Microsoft Pubcenter ads in the div control...

  • [Updated 12/16/2013] Updated with screenshots of different files in the new exported version. At bottom of this post.

    In the latest build when you create a windows 8 app or any app and export as a windows 8 app, the index.html file does not have everything it should. I can compare it with my older windows 8 export that works fine, but with exporting using the latest build I consistently get the javascript error. I can confirm it is an issue with the way the page is formed by copying the contents of my old index.html file in place of the new one and the new app will start working. There are a bunch of little differences between the structure of the new index.html files and the old ones that C2 would generate.

    I am in the process of rebuilding my windows 8 application and cannot use the export functionality for a new build due to this issue. Here are Links to the old and new index.html as well that will help you find the issue.

    Old Index.html file(working): dl.dropboxusercontent.com/u/138635871/C2BugCapx/indexOLDWorking.html

    New Index.html file(broken): dl.dropboxusercontent.com/u/138635871/C2BugCapx/indexNEWBroken.html

    Link to .capx file (required!):

    dl.dropboxusercontent.com/u/138635871/C2BugCapx/win8adtest.capx

    Steps to reproduce:

    1. Open the capx

    2. Export to windows 8

    3. Open in visual studio

    4. add the test certificate

    5. Run the app (F5)

    Observed result:

    App Fails to run and displays a javascript error that jQuery is undefined.

    Here is the Error Text:

    Unhandled exception at line 77, column 3 in ms-appx://1195e6d7-3fa5-4ca5-ba49-a39875d7e345/index.html

    0x800a1391 - JavaScript runtime error: 'jQuery' is undefined

    Here is the code from line 77:

    jQuery(window).resize(function () {

                  ?cr_sizeCanvas(jQuery(window).width(), jQuery(window).height());

              });

    Expected result:

    App should run and display in windows 8

    Browsers affected:

    Chrome: N/A

    Firefox: N/A

    Internet Explorer: N/A

    Operating system & service pack:

    Windows 8.1 (All current updates)

    Construct 2 version:

    r154

        

    Just wanted to update this, I am seeing differences in the files that are generated in the solution as well. Some also seem to be missing according to visual studio... Did something get changed or mixed up between the windows 8.1 and windows 8.0 options? I export as windows 8.0 and here is the difference between my old and new exports (old is r152, new is r154)

    New is on the left, old (working) is on the right...

    <img src="http://dl.dropboxusercontent.com/u/138635871/IssueScreenShots/Win8SolutionFilesDifferent.png" border="0" />

    I figure you guys are probably off for the weekend, so I am just trying to add as much detail as I can to get the windows 8 export piece fixed as it is currently broken and I cannot run the generated solutions from Visual Studio any more...

  • The browser object is not made specifically for calling packaged app functions. It is for manipulating the browser which means it will have calls that do not always work in packaged apps for teh various stores. Since the game is not counting as a browser, it can't browse to the site. That specific call is to load the address into the current browser session. Your windows 8 app does not really allow this because though it is using the IE10/11 engine to render, it is not a browser, it is an app. At least that is what I have been lead to believe. Some of the browser objects calls are meant to actually run in a browser. Your app can't "Go" to the URL directly. It can call to it for an actual browser to open though using the Got to URL in a new window calls a separate instance of IE up which works fine as then you are not trying to load the page inside of your app.

  • Also keep in mind that WP8 does not support WebGL at this point (8.1 update should fix this in a few months) which means memory management is an issue especially on larger projects. WebGL allows layouts to be loaded into memory one at a time, without it the whole game get's loaded. Even with all the optimization tips I could find, it is still a much slower experience on the Windows Phone than on iOS and Android as I can use CocoonJS for them which provides WebGL and hardware accelerations.

  • xXxForsakenxXx That is what the debugger does. It tells you the amount of time each object takes to load, teh CPU usage of each object, etc... hit ctrl + F5 to launch your app with the debugger.

  • Darklinki Just PM'd you... if you have a few minutes let me know :) Thanks

  • You can always use Podes HTML iFrame plugin to show whatever ads you want. Others have said this works with leadbolt (not via cocoonjs from what I have been able to find so far). Then you can put the ads wherever you want as they are placed like a sprite. Also showing ads between layouts doesn't really work. What you need are layouts just for your ads and go to those layouts before/after your main layouts.