cranberrygame's Recent Forum Activity

  • friends,

    i found best solution

    index.html (landscape)

    ...

         <style type="text/css">

    ...

    /* cranberrygame start */

    {

    width: device-width;

    }

    /* cranberrygame end */

    </style>

    ...

    css-tricks.com/snippets/javascript/fix-ie-10-on-windows-phone-8-viewport

  • friends,

    i found best solution

    index.html (landscape)

    ...

         <style type="text/css">

    ...

    /* cranberrygame start */

    {

    width: device-width;

    }

    /* cranberrygame end */

    </style>

    ...

    css-tricks.com/snippets/javascript/fix-ie-10-on-windows-phone-8-viewport

  • Joannesalfa,

    updated from "System Is on platform node-wekbit" to BrowserLanguage Is supported if not node-wekbit and pokki(html5website)

    thanks

  • ramones,

    thanks a lot,the error was removed with your help.

  • i'm writing plugin to find out browser's language setting regardless of platforms.

    construct.net/en

    to support windows8, this plugin (runtime.js) need to call WinJS libray (Windows.System.UserProfile.GlobalizationPreferences.languages) like following.

              if (typeof WinJS!="undefined") {//windows8

          var codes = Windows.System.UserProfile.GlobalizationPreferences.languages;

          code=codes[0].substr(0,2);

        }

        

    if set PNG recompression: None and uncheck Minify script in Windows8-Export Options , exported html works well in windows8 simulator.

    but if set PNG recompression: Standard and check Minify script in Windows8-Export Options, exported html complains error with following message in windows8 simulator.

    Unhandled exception at line 205, column 218 in ms-appx://89bc4ec2-6e35-4d51-aa67-a9c1041f101b/www/c2runtime.js

    0x800a138f - JavaScript runtime error: Unable to get property 'on' of undefined or null reference

    ..."undefined"!=typeof WinJS&&(c=Windows.ln.on.um.Hn[0].substr(0,2)...

    how can i remove this error.

    thanks in advance

  • Joannesalfa,

    i saw your post.

    in node-webkit navigator.language only returns en language code (english).

    roughly say, it seems that the function calls c++ lib and the library are called l10n.

    i think the best way will be the author's modification or additionn of that library.

    i looked for an alternative way and found following. (updated this plugin)

    if in node webkit, show "change language menu". (manually change language)

    i hope this help you.

    thanks

  • Kyatric,

    yes, this seems to duplication with Browser Plugin's Language.

    but Browser Plugin's Language uses only navigator.language.

    so doesn't support bada, blackberry blackberry, windows-phone-8, windows-phone-7, IE ,windows8.

    i couldn't give up these other platforms.

    probably, official Browser Plugin's Language's support for all platforms will be best solution.

    thanks your reply.

  • Joannesalfa, can you give me a peace of advice to get language information in node-webkit?

  • [Plugin] Translation

    1.overview

    provide simple translation text from JSON

    [HTML5 website] [android, blackberry10, ios, wp8, windows8] [crodova cli] [xdk] [phonegap build service]

    Translation.Add from JSON string

    then use local language text like this according to selected language: Translation.Text("home_title")

    2.download

    download

    3.function

    Add texts from JSON

    Language is: Check language code

    Language is detected: Language code is detected

    Change language: Change language code

    Text: expression to get text according to the language.

    Language: expression to get language code

    JSON string format:

    "{

    ""en"":{

    ""home_title"":""Block Puzzle"",

    ""play"":""Play""

    },

    ""ko"":{

    ""home_title"":""블록 퍼즐"",

    ""play"":""놀이""

    }

    }"

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • blackhornet , thanks a lot

    that's the solution i searched for.

  • thanks

    but my wanted solution is not that

    even though there is no space to move along the path in bombing chap lecture source code , it works well.

    following is bombing chap source code modified (works well)

    dl.dropboxusercontent.com/u/186681453/question/q3/BombingChap_Final_r132_modified.capx

    but following code which i newly crated doesn't work.

    dl.dropboxusercontent.com/u/186681453/question/q3/pathfinding_enemyai.capx

    i can't know what's missed.

    help me.

  • hi, every body in scirra.

    i'm studying with Create a Bomberman-Inspired Game in Construct 2: Enemy Creeps and AI

    gamedev.tutsplus.com/tutorials/from-scratch/create-a-bomberman-inspired-game-in-construct-2-enemy-creeps-and-artificial-intelligence

    but enemy doesn't move to destination through solid blocks in pathfinding

    how can i this work?

    thanks in advance

    attached files

    <img src="https://dl.dropboxusercontent.com/u/186681453/question/q3/layout.PNG" border="0" />

    <img src="https://dl.dropboxusercontent.com/u/186681453/question/q3/event.PNG" border="0" />

    Enemy property

    <img src="https://dl.dropboxusercontent.com/u/186681453/question/q3/enemyproperty.PNG" border="0" />

    Capx file (r141)

    dl.dropboxusercontent.com/u/186681453/question/q3/pathfinding_enemyai.capx

cranberrygame's avatar

cranberrygame

Member since 23 Jun, 2013

Twitter
cranberrygame has 4 followers

Connect with cranberrygame

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies