thehen's Recent Forum Activity

  • Hi all,

    This is something I'm consistently struggling with still.

    The problem lies in WindowWidth/WindowHeight/ScreenWidth/ScreenHeight

    For example, how do I differentiate between an iPad 1 and iPhone 5? The pixel width of an iPhone 5 is greater than iPad, so there is no correspondence to physical size.

    I can implement devicePixelRatio into an expression as a plugin. Then I could use the following:

    If (ScreenWidth/devicePixelRatio >= 1024)

    This would target any iPad and general bigger displays.

    If (ScreenWidth/devicePixelRatio <= 568)

    This would target any iPhone and smaller devices.

    My question is - haven't other people run into this problem and does my solution make even sense?

  • Hi guys. We're currently looking for London-based Construct 2 users to help us with level design for Mortar Melon. We've got a number of tight deadlines in the coming months and can do with all the help we can get. Remuneration is open for discussion.

    If you're interested, pop me an email: henryaeu@mudvark.com.

    Cheers!

  • mertyildiran'm only add the plugin as a object and add the back button event so what is next ?ake sure you follow the tutorial:ncluded in the Windows Phone Plugin for Construct 2 is a ready-exported project that we just need to drop the relevant exported files into. Never export directly from Construct 2 into this project otherwise vital files will be overwritten. I generally have two folders, one for the project and one for the exported files. Then I just copy what I need from the exported folder to the Windows Phone 8 project folder, helping to ensure nothing important gets overwritten.

    Copy the Project folder included with the plugin to a safe location. Next, export the Construct 2 game for Windows Phone 8, ensuring that Minify script is unticked (Minifying works but for some reason performance is much slower on Windows Phone). For more information on exporting your project read How to Make a Windows 8 App -> Exporting from Construct 2.

    Now we have two folders, one for the Windows Phone 8 project and one for our exported Construct 2 project. We now need to copy over our JavaScript and any images or files currently not included (no audio yet - that comes later).

    From your exported Construct 2 project copy the c2runtime.js file and the images directory to the Windows Phone 8 project folder. For this game that?s all you need, but if your own project has files included, ensure they get copied across too.

    Open up the Windows Phone 8 project (WindowsPhonePluginForConstruct2.sln) and we?ll need to add our images to the solution. Navigate to the solution explorer, right click the images folder, select Add -> Existing Item, then add the newly copied image files.edited><editID>thehen</editID><editDate>2013-09-13 22:50:01</editDate></edited>

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • kenhes if you PM me a build I can take a look.

  • We're using width:100% for Mortar Melon and we tested on the 920 with no issues. That was the only change I added to index.html as far as I can tell.

  • You could build your own launcher relatively easily.

    Just wrap a launcher HTML page in Node-Webkit that's populated from a remote server. Host games remotely and store them in the application cache.

    Are there any current limitations in Node-Webkit that would prevent this?

  • tauer have you checked that it's definitely physics related? Might be worth removing the physics behaviors just to make sure.

    they were generic fixes that I'm sure Ludei will implement into the Construct 2 plugin and CCJS releases soon. Previously I couldn't get any of my games to run with native physics, now they all do. Even with crazy joints.

  • Blacksmith awesome stuff! Just played through and rated five stars!

    Congrats on the release, this is one of the best games that uses the Windows Phone plugin so far :D

  • In my Windows Phone Plugin I use:

    { width: 100%; }

    Looking back I'm not sure why I opted for that over device-width.

    Ashley any source on that not working for all devices? I can't find any reference in MS documentation.

    Cheers!

  • tauer I'd recommend speaking to Ludei directly. We had similar physics issues and they were quick to fix.

  • WPGamer pm me your latest Windows Phone export and I'll take a look.

  • Hi guys,

    I just picked up on this article: Microsoft wants HTML5 on Xbox One

    e want to offer the opportunity to build either HTML5 applications, or native applications that span all of those devices, enabling them to reach segments of users on those devices, users on a gaming console, and provide them with very unique opportunities to monetize their application investmentsQuote]Is Microsoft replacing its DirectX-based XNA with an HTML5 library? It's an interesting idea, and one that definitely has merit ? especially considering the new focus on mobile.

    This sounds very promising!

thehen's avatar

thehen

Member since 25 Jul, 2012

None one is following thehen yet!

Connect with thehen

Trophy Case

  • 12-Year Club
  • x2
    Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

14/44
How to earn trophies