MTR's Forum Posts

  • The objective is create a function to make a button and set an image.

    The 1st object load image correct.

    When the 2nd object load the image, the 1st object change the image.

    What's the problem?

    I can't load an image for only 1 instance of the object?

    Thanks

  • Is there any way to have the collision points of an image saved in a txt/json and load them in runtime?

    Objective: load image from file AND load collision box (of the new image).

    Thank you.

  • I have a game in 16:9 1920x1080

    Some people with panoramic monitors do not like the black side bars. There is some way to stretch the whole game to fit in 21: 9 (even if it is deforming the images).

    Thank you

  • Idle Evolution

    is on Steam

    http://store.steampowered.com/app/577730/

    Idle Evolution is an original, different and unique game that mixes genres like: time-manager/educational/incremental/strategy/...

    A gamble that may confuse at first but will become pleasantly surprised when you start playing.

    The game uses atoms as currency and the periodic table as a map. But do not worry, you don't need to know ANYTHING about chemistry.

    A little history about Idle Evolution:

    -When the game was just an idea, the reaction of the people was: "A game of chemistry, who can like this?", "People only know the formula of water". But I trusted my feelings.

    -The 1st version was published on the website Newgrounds. I could not believe it, it was on the frontpage for 1 year! With 1.25 million gameplays and 4.10 stars.

    -After a few months, I published a new version in Kongregate, less passive, thinking about the possibility to port it to Steam. The game worked perfectly! It become an idle game that did not need to wait days to continue playing. 2 million gameplays and 4.05 stars!

    -And now, after 2 long years of development, the Steam version is released.

    God created the world in 6 days... and you?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I need to detect if the game is running on SteamOS to setup the steam cloud.

    I have this for other platforms:

    I try to install SteamOS in VirtualBox and VMware Workstation, bugs, blackscreens, ...

    It's only 1 word and I'm losing days, HELP!

    Thank you.

    I found it, it's the same as linux: "Linux x86_64".

  • in runtime.js after export.

    replace:

    img_.onerror = function (e)

    {

    img_.c2error = true;

    anyImageHadError = true;

    if (console && console.error)

    console.error("Error loading image '" + img_.src + "': ", e);

    };

    if (this.isEjecta)

    with:

    img_.onerror = function (e)

    {

    if(img_.try===3){

    img_.c2error = true;

    anyImageHadError = true;

    if (console && console.error)

    console.error("Error loading image '" + img_.src + "': ", e);

    } else {

    img_.src='';

    if(img_.try===undefined) img_.try=0;

    setTimeout(function(){

    img_.try++;

    img_.src=src_;

    },50);

    }

    };

    if (this.isEjecta)

    Thank you, it work!

    I could play my game on Mac, but today I tried it again and I got the red bar in the loading.

    I'm 99% sure it's because the amount of files, I just overcame the 1000's on "app.nw"

    Note: the file is "c2runtime.js"

  • Thank you. It work.

    How you detect it? In notepad++ I don't see it.

    I need to use latin languages in this .txt (áàü...), I save the .txt with encoding "UTF8 without BOM", I hope all work. Thanks again.

  • I need to read a dictionary from a txt file in "C:/..."

    I use NWjs.ReadFile() and I think this function add some special character that make Dic can't load the Json.

    The Dic is empty, is there any way to know the error?

    If someone know any other way to do it, please tell me.

    Thanks you.

    Example:

    .capx

    https://drive.google.com/open?id=0B9sGs ... UxCSGFKMXc

    .txt (dictionary)

    https://drive.google.com/open?id=0B9sGs ... jVQb3dnVGs

    NOTE: copy it in c:/ or change the path in "FOLDER_MOD" variable.

  • I install mac OS X 10.11 in virtualbox and I have the same problem. I can't read external files. It only work in windows.

    The only way I have managed to open a file is through:

    NWjs.ReadFile( NWjs.AppFolder & "a.txt" )

    I can change all AJAX functions to use this... But I already can't load images or music.

  • Hi,

    I'm near to finish my game, it works perfectly in win7.

    I installed virtualbox with Ubuntu to test it in linux. I've got the game work, but there is no way to load the savegame, play music, ... read any external file.

    -I can create files, the savegame work.

    -I use: NWjs.AppFolder & "save/slot1.sav" (it works in windows)

    -"NWjs path exists" detect the file.

    -The files have the read permission.

    Here's a sample source code:

    https://drive.google.com/open?id=0B9sGs ... XhXQnRScG8

    And exported to linux64 example:

    https://drive.google.com/open?id=0B9sGs ... WNHVkM3eTQ

    (With the "save" folder and 3 sample files)

    (You need "chmod a+x nw" to execute)

    I'm total noob in linux, there is something I must know about how to read files?

    Thank you

  • Tested and I see the bug too.

    As a workaround I put the "include" in a disabled Group.

  • Problem Description

    When you copy and paste a group (with events and...) The "sid" of the new group is OK, but the "sid" of events, conditions, ... is duplicated

    Note: you need to check xml source file.

    Steps to Reproduce Bug

    • Make a "Group"
    • Add an "Event"
    • Copy - Paste the group

    Observed Result

    "sid" in xml are duplicated

    Expected Result

    new "sid" generated

    Construct 2 Version ID

    Tested in 227 and 231

  • I think I found a bug in special conditions:

    2 layers with VHS each

    in code: disable all VHS (button: enable VHS -> wait x seconds -> disable VHS)

    BUG: Sometimes (every few seconds after disable it) the top layer change the width of all objects for 1 frame and back it to normal size.

    Not always happen, and the time is random.

    If you test it with 3 layers, this happen to layers 2 and 3, but never to low layer.

    Solution: Don't disable this effect. Set all VHS parameters to 0

  • Is there any way to adjust a text in a specifit area? Changing the font size.

    Any object, behavior, code, ... ?

    I'm trying something like this, but I must put this "wait 0.1" to get the ".TextWidth" and every time the text change, user can see a flash in screen.

    Thank you

  • I have a problem with local variable and wait.

    Note: I can't use a global variable, I call the function too many times in the same loop.

    I hope someone can help me. Thank you.