irina's Forum Posts

  • Just discovered this problem on my project...

    iw tryed with layer scale but it seems that layer scale is broken... :8

    i just reported that bug.... https://www.scirra.com/forum/layer-scale-is-broken_t153679

    anyone got solution how to properly scale pined object aswell and preserve its relative position?

    help!!!

  • Problem Description

    layer scale does not scale layer as one would expect

    Attach a Capx

    https://dl.dropboxusercontent.com/u/169390986/PUB/layer%20scale%20error.capx

    Description of Capx

    2 objects, each on its own layer... when layer 0 get scaled both objects move and change positions

    Steps to Reproduce Bug

      use mouse wheel or arrows up/down to scale layer 0

    Observed Result

    when layer 0 gets scale input, objects on both layers change

    and i see that both layers viewports change also...

    Expected Result

    i expect that scaling goes only for layer that gets scaled

    Affected Browsers

    • Chrome: (NOT tested)
    • FireFox: (YES)
    • Internet Explorer: (YES)
    • NW.js: (YES)

    Operating System and Service Pack

    win 7 pro 64 up to date

    Construct 2 Version ID

    latest stabile 212.2

  • AndreasR

    Thank you.

    I must say that WebStorage is far better in this particular task.

    This was all i needed to write for this to work:

    WebStorage local key "x" <= 9 | WebStorage set local key "x" to "0"&WebStorage.LocalValue("x") and that was it, i turned my number "9" to "09".

    With LocalStorage for the same task one must use external variables, write functions and write dozen lines of code (not to mention errors that popup in both these examples).

    Thas in my book total rubbish... but if Ashley thinks that this is better who am i to argue?

    Anyway thank you for all your help.

  • AndreasR

    small problem in this logic...

    this example sucessfuly changes variable but it wont change/correct localstorages value it self (wich is what i need).

    when i set that global variable from 15 to 9 and set

    LS <= 9 | LS set item "example_key" to "0" & str(LocalStorage.ItemValue)

    every time i run it adds "0" in front of current value so i end up with value like: 000009

    if i add clear storage on start of layout then its allways just "9".....

    buhuhuhuhu... i miss my WebStorage... it was so simple and easy...

    PS: regarding that JS error... i run Latest stabile release 212.2

  • AndreasR

    Thank you very much!!!

    now i see the logic of it.

    by the way... i have error in FF when i run your example

    Javascript error!

    UnknownError

    http://192.168.5.2:50002/LocalStorage_plugin.js, line 33 (col 0)

    This may be a bug in Construct 2 or a third party plugin or behavior - please report it to the developer following the bug report guidelines. Subsequent errors will be logged to the console.

    can you check please?

  • AndreasR

    can you help me out please!?

    i was used to webstorage (wich was fine by mine opinion) and now its gone and im stuch with this LocalStorage that i just dont get...

    I have numerical value stored under key "X"

    and i want to compare it and see if that value is equal or under "9" and than ad zero infront of it so that value looks like "09"

    Websorage had "compare key value" and that worked excellent for me... but no im stuck with this crapy LocalStorage and dont know how to proceed...

    HELP!!!!

  • found solution:

  • hm... with global variable that must work.

  • Hello,

    in NW.js theres option to "Run file" and i use it to start an external exe when i'm starting my own program.

    That part works ok but i would also like to close that external exe when i am exiting my own program.

    Any ideas how to do that?

    thanx!

  • skelooth

    I was just looking for this!!!

    any chance you can make it to work under NW.js?

  • R0J0hound

    Thank you for your help...

    i just realized that mine language is not supported...

    i was searching web for hours and i think iw found second best solution:

    http://sourceforge.net/projects/capture2text/files/Capture2Text/

    Thank you for your help!!!

  • R0J0hound

    i have some error in NW.js (ocrad.js line 66 col 3)

    i browser theres no error but i just can't get this to work... what am i doing wrong!?

    https://dl.dropboxusercontent.com/u/169390986/PUB/OCR.capx

    thanx!!!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Black Rabbit

    Mine expiriences are like this:

    working in C2 is awesome and support from community is excellent but publishing is total mess.

    C2 dont suply their own publishing solution but it relys on others, 3rd party services, wich means a whole lot of problems and non compatibility issues that you will encounter.

    BR

  • can anyone point me what needs to be done in order to run this example in browser element: execute js?

    http://stackoverflow.com/questions/2695 ... ml5-canvas

    thanx!

  • nonom

    ...and what to do with that?