R0J0hound's Recent Forum Activity

    • Post link icon

    Distorting sprites like that weren't in C2 because it's not doable without webgl as I recall.

  • xml is a text format so I don't think you can get excel to load it with images. If you're doing it for your own format you can use something like canvas.asUrl to get a text version of an image that you can load into a sprite or something later, however excel will not understand that.

    You can either figure out how to generate the xls files from the format spec:

    https://msdn.microsoft.com/en-us/librar ... =office.14).aspx

    or maybe use some js library to generate it:

    Maybe this?

    http://excelbuilderjs.com/

  • It's a fluid simulation, but you could possibly fake it like this:

    https://dl.dropboxusercontent.com/u/542 ... unnel.capx

  • I usually just use a square sprite. Make it's origin be left center then with events set it's angle toward where you want it to end and the width to the distance and height to 1. Then to pick objects touching it it's just a matter of using the overlap condition.

  • The % operator gives the remained after a division.

    Ex

    12%10 = 2

  • You could do a sandy shore with another pass of your array.

    If 0 is water and 1 is sand in your array you can make the shore with:

    +----------------------------------------------+
    | array: for each xy                           |
    | array: value at (self.curx, self.cury)<>0    |
    +----------------------------------------------+
      +--------------------------------------------+
      | array: value at (self.curx-1, self.cury)=0 |array: set value at (self.curx, self.cury) to 1
      | or                                         |
      | array: value at (self.curx+1, self.cury)=0 |
      | or                                         |
      | array: value at (self.curx, self.cury-1)=0 |
      | or                                         |
      | array: value at (self.curx, self.cury+1)=0 |
      +--------------------------------------------+[/code:1t6b4dac]
  • This topic might help:

    It has a capx that separates the decoration tiles into a second tilemap with events.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • So basically you want to copy a sol from one family to the other. Typically there is better logic than doing that but if you must i can think of a few ways:

    https://dl.dropboxusercontent.com/u/542 ... _copy.capx

    If only one object is picked of group1 then "group2: pick by uid group1.uid"

    If multiple objects are picked in group1 copying it over will take two events. One to mark the instances so that group2 can pick then and a second to make group2 pick them.

  • This bug will probably be closed then. Without a capx the most that can be done is recreating a project an seeing it works, as you have done. The full project isn't useful for the report either, but since it works in a new project the bug is likely with your events.

  • You forgot the capx of the problem.

  • Say the uids of all the objects in the groups are 0,1,2,3,4,5.

    Then right before event 8 the "selected object list" or sol is all the instances in both:

    group1= 0.1,2,3,4,5

    group2= 0,1,2,3,4,5

    Then in event 8 the condition "group1:pick by uid 1" modifies the sol to:

    group1= 1

    group2= 0,1,2,3,4,5

    and the action "group1: set opacity to 50" takes the picked group1 or instance 1 and makes it's opacity 50.

    Next consider event 9.

    Right before it runs the sol is:

    group1= 0.1,2,3,4,5

    group2= 0,1,2,3,4,5

    Then in event 9 the condition "group2:pick by uid 1" modifies the sol to:

    group1= 0,1,2,3,4,5

    group2= 1

    but then the action "group1: set opacity to 50" is the same as in event 8. It takes the picked group1 or all the instances (0 to 5) and makes their opacity 50.

  • Supposedly there's a way to build without it. It's called normal and with it it's called sdk. However that seems to be too much trouble. There was also a way to have a trigger when the devtools were opened so it could then be closed immediately, unfortunately this was depreciated in newer nw.js versions.

    The best we can do is disable the shortcut keys to open the devtools. Use the browser object to run this js at the start of the layout.

    "document.onkeydown=function(e){var evtobj = window.event? event : e;if (evtobj.keyCode==123 || (evtobj.metaKey && evtobj.altKey && evtobj.keyCode==73))return false;};"

    I got it from this link, and it's supposed to work on windows, linux and mac.

    http://stackoverflow.com/questions/3365 ... on-nwjs-13