grossd's Recent Forum Activity

  • Thanks for testing Do you think you could provide a link to the project file ... But, thinking theoretically, its hard to conclusively prove with test cases.

    I am trying to instead use call backs and varying secondary conditions (states) to order sequences independent of the layout include sequence; and for critical items I currently duplicate them in the "parent" layout ... (for example for processing that has to happen on end layout)

  • Hi,

    Is it possible to export or otherwise easily wrap a C2 app, as a chrome extension? If yes, are there perhaps any examples?

    thanks,

    Dan

  • Thanks.

    I guess its a bit ambiguous in the manual:

    "Start & end

    On end of layout

    Triggered when the layout is ending. This can happen when the project goes to a different layout or when the project closes."

    I guess it depends what project closing means.

    https://www.scirra.com/manual/124/system-conditions

  • Hi

    I wrote a short test app, to count the duration in seconds from pressing a start button. The app runs in node webkit. Upon closing the browser window, i expected the on layout end to trigger, as per manual. However, the event does not get triggered.

    I am including a link to the test project: https://dl.dropboxusercontent.com/u/102 ... Close.capx

    is this a know issue?

    thanks,

    Dan

  • Thanks,

    What about triggers, such as on start layout triggers are they processed in sequence too.

    In one implementation I had included a second condition to each on start layout, such as layoutState=1, layoutState=2

    like this i tried to ensure that on start layout in a base sheet is only triggered after an on start layout in an include sheet, but this requires a kind of "stickiness" of triggers: the trigger later needs to "wait" until the second condition is true and then fire. But i wasnt sure if this really worked consistently (it seemed to have worked though, i just wasnt sure if its guaranteed, or a fluke).

  • One approach I am trying now to overcome this is to turn all onStartLayout code segments into Functions, and then have only one onStartLayout that calls all functions.,

  • Hi,

    To better structure the code of the game, I am using include event sheets extensively. I have one include event sheet that includes all other event sheets, and that is included in all other layout event sheets. Like this if i want to add event/action behavior across all game layouts in can do so by creating a new "include" event sheet.

    E.g.

    Layout1-Events sheet includes IncludeInAllEventSheets-Events.

    IncludeAllEventSheets-Event includes

    -includeEventSheet1

    -IncludeEventSheet2

    -includeEventSheet3

    etc.

    Now, my question. If I have an onStartLayout trigger in event sheet 1 and event sheet 2 and event sheet 3 and in Layout1-Events, can I assume that the order in which the onStartLayout will be triggered will be according to the include event sheet sequence?

    thanks,

    Dan

    p.s. If no order can be guaranteed, then I would suggest adding a priority/sequence attribute to each Event trigger, which ensures that same triggers are ordered in the event queue. In essence turning them into "nested" events as it were

  • Try Construct 3

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

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

    I created 4 levels of nested JSON, using four levels of dictionary, as follows:

    D1 includes (key,value) pairs

    D2 includes (key, D1.asJSON) pairs

    D3 includes (key, D2,asJSON) pairs

    D4 includes (key, D3.asJSON)

    Finally I save D4.asJSON into a text file using webnodekit save function.

    I then used a number of online JSON to XML and JSON to CVS converted, and none was able to parse the nested JSON -- even though a number of converters specifically mentioned nested JSON as input.

    Any idea why this may be the case.

    Dan

  • Sargas,

    I of course again agree with you. And I am again looking at efficiency and self-documentation. Its better to allow families in families, than requiring the developer to readd all object types in a second family. Because, its easier to do, therefore less error prone, and its also more self explanatory, looking at the family in families.

  • Yes, I know. But, its not so useful for comments related to ongoing design thinking.

  • Hi,

    I am currently using an "agile" development tool to keep track of requirements and project notes. But, I think it would be great if there could be a work-log integrated in C2. Perhaps similiar to the Visual Studio IDE or Eclipse.

    First, perhaps the ability to add notes to each layout, and perhaps notes to the whole game. Later, perhaps also a todo list that is managed.

  • Hi,

    To simulate class hierarchies and also multiple classification, it would be very helpful to support families in families. The "algorthim" for instance detection would only need to be extended to work recursively to find all "picks" in the family and includes other families. This would allow creating very general event code.

    For example,

    I have some code that ensures that whatever is dragged on a screen is put on the top layer. With families in families I could write this event code using one on-top family, in an include layout and include it in all layouts and then just the object types or already existing families of object types into the on-top family. Like this the right instances would be identified automatically.

    Dan

grossd's avatar

grossd

Member since 4 Feb, 2014

Twitter
grossd has 1 followers

Trophy Case

  • 12-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

17/44
How to earn trophies