Kan's Forum Posts

  • Hey there,

    maybe my brain's just too tired, but I can't find how to make this work properly (see capx).

    Basically, I'm trying to select one or several units, then have them pathfind their way to the touch/pointer. Very classic.

    Thing is :

    * I do not use a selection box : every unit is selected when passing the finger/pointer over it. That part works just fine and I like it.

    * And, my units are in a family called "UNITS", which has a family pathfinding behaviour, but they are also in a family called "SELECTABLE" (among with buildings, etc.), which has the "is selected" boolean variable. Meaning I don't select units directly : I select selectable objects, and if those happen to also be units, then they will move on click as units should.

    The issues I'm facing are :

    1. The selection rectangle that marks when an object is selected doesn't always follow the object when it moves (it seems to stick to the object only if it was the first one that was selected or something)

    2. No unit will move unless the unit with the lowest UID is selected. And then, they will move even if they are not selected themselves.

    I feel like it all has something to do with instance picking between families, but I'm really at a loss about what to do to solve it. Unless maybe I remove the bigger "SELECTABLE" family and have the game select every family of objects separately, but that would suck.

    Thanks in advance if anyone can help.

  • Rhindon : Yeah, it probably is. And I haven't even played the latest one on 3DS yet!

  • No prob

    And thanks for the comment on the logo. I had made it long ago, I just never bothered changing it cause...well, you said it, it's cool!

  • +1 for this idea.

    I use to see requests and suggestions in the "Construct 2 general" forum. Dunno if that helps making sure others see it or not though.

  • TiAm, I just reverted to Node-webkit 10.5 following your tutorial, and now it works like a charm. Maybe the developpers at Scirra should tell people to download the older version of Node-webkit-for-Construct-2 until that bug is resolved with the newer version.

  • Reverting to nw 0.10.5 following TiAm's tutorial did the trick. You say I should report the bug with the new version directly to the Node Webkit devs, but will they understand when I'll say I have an issue with Node-webkit-for-Construct-2 ? (who makes the for-Construct-2 versions anyway?)

  • There, if anyone wants to add something or just say they have the same problem :

  • Problem Description

    When previewing a game with node-webkit, or playing a game exported with node-webkit, the window frame doesn't show. This issue appeared with Construct 2 r190. I looked at both package.json and package-preview.json files in Construct's node-webkit exporter files, and in neither of them "frame" is set to false. (In package.json you can see "frame": [[[frame]]] and I had to add "frame" to package-preview.json myself since it didn't already exist, and I have set it to "frame": true but it didn't do anything.)

    When exporting the game with node-webkit, I have checked the 'Window frame' box, but still have no window frame. I have also extracted the exported package.nw file and looked at the package.json file contained in it, and I can see "frame": true .

    Finally, I also tried uninstalling Node-webkit for Construct 2, and reinstalling it, and it didn't solve the problem.

    Attach a Capx

    Description of Capx

    Steps to Reproduce Bug

    • Preview in node-webkit
    • Or export with node-webkit

    Observed Result

    There is no window frame : no minimize, maximize nor 'x' button

    Expected Result

    Affected Browsers

    • Node-webkit: (YES)

    Operating System and Service Pack

    Windows 7

    Construct 2 Version ID

    r190

  • spacedoubt Yes same here. It started with no window frame in preview, so I tried exporting and I have the same issue. I'll post a bug report and then if you like you can post a short comment to it just to say that I'm not the only one dealing with this issue.

  • Yes, the window frame box was checked when I exported. I just looked at the exported package.json file, and "frame" is set to true (just like it was in C2's node-webkit exporter package.json and package-preview.json files).

    I could post a bug report, but I'm afraid Ashley will say that he can't reproduce it, and that it won't get resolved.

  • Hey there,

    Did anyone else notice that the window frame (bar with the minimize, maximize and 'x' buttons) is lacking from node-webkit games made with Construct 2 r190 ? I tried changing the "frame" option in the node-webkit exporter files, but it didn't change anything.

    Anyone knows how to fix this?

    Thanks in advance!

  • Try Construct 3

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

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

    Well, Ashley works. Editor requests tend to go a little slower though; apparently it's a lot harder to work with than the engine itself.

    I understand that, and I know how much work it must be for three guys, and I'm really impressed by what they've achieved ever since Construct Classic. Now that they are reading this, I want to make sure you guys understand that I never mean to say Construct isn't good enough already. I switched from GameMaker to Clickteam's products, and then from Clickteam to Construct Classic years ago, as I found it was even better than any other game-creation tool. And I think Construct 2 takes it to an even higher level, and is the first game-making software I ever bought. Congratulations on everything you've done, and thank you for creating Construct, and making it the way it is.

    what if you only want this layer in, say, half your layouts? you're stuck. (AFAIK anyway)

    Global layers wouldn't work because you'd want different objects on your layers. Right?

    UberLou and Sqiddster are pointing straight to what I am dealing with too.

  • Should we tag someone at Scirra to make sure they see this? Is this what people use to do here?

  • Hey there!

    I know I'm not the first one to mention this, but given it's been asked for years without a final answer, I'll ask anyway : is it possible to implement some way to copy layers please?

    Once you have created several layouts by duplicating them, and decide that you want a new layer on every single of them... it quickly turns into tedious work. I don't really want to have to destroy every layout, and start duplicating one into several ones again. And it can take a long time to add the new layer with the same name and properties to every single layout that requires it.

    Thanks in advance if you're planning on adding this option to C2.

  • Both work fine for me.

    BUT, the first time I clicked No 2, it got me to en empty blanck page filled with black. The second time I clicked it got me to the game, which works fine as well as in No 1.

    I'm using Firefox on Windows 7.