cjimison's Recent Forum Activity

  • Hey all,

    We are using Travis CI to build and deploy our game when a new update is committed into our repo. Right now we are having to commit the full build into the github repo but would rather have our build machine generate the HTML packaged build but I need some kind of commandline tool to actually build our project folder. Is there any tools/guides on how we can do this in Construct 3?

    Thanks!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Just wanted to poke this thread to see if there was any follow up to if there is an API that can enable such functionality.

    Assuming the answer is: No this is not currently possible in Construct.

    What is the process to make a feature request for something. I can see this being very helpful in a AI style behavior processor where I would like to build small "event sheets" and dynamically swap them out on the fly based on the some server state, etc. As compared to having one very large sheet that covers all possible cases.

    Thanks!

  • I think it is more like if this is even an option. Is there an API to enable such functionality?

    Thanks!

  • I see and yes that was the issue. So follow up question:

    Is it possible to set the event sheet for a Layout via JavaScript? I looked in the APIs and didn't any direct calls for such an action.

    Example:

     // Does not seem to exist
    	runtime.layout.setEventSheet("My_cool_sheet")
    

    For example I might want to swap out event sheets based if a socket is still connected, etc.

    Thanks for all so much your help!

  • Sorry I didn't really describe my use case very well and maybe some of this is just confusion on my part. Let me take another swing at this:

    I create a new JavaScript project because I have a back end server using WebSockets that needs to process incoming/outgoing network events, stream down server generated assets, etc.

    However when I create a new event sheet in my project it doesn't seem to be picking up things like keyboard input or basic tick handlers. Additionally I would like to process some things before the sheets tick event are processed and then other actions/operations after all the sheets have been "ticked".

    Is this possible and if so is there any examples of such a use case implemented I can review?

    Thank you so much for your help!

  • Sorry if this question has been answered before, but I couldn't find anything after reviewing the docs and forum posts:

    How does one go about calling an Event Sheet from within JavaScript? For example

    	
    async function OnBeforeProjectStart(runtime)
    {
    	runtime.addEventListener("tick", () => Tick(runtime));
    }
    
    function Tick(runtime)
    {
     // Call Tick on Event Sheet "my_cool_event_sheet"
    }
    

    The idea is event sheets could be really cool to prototype something before I invest the time to write up a more complex bit of logic in Javascript. Similar to the Unreal Engine where I can invoke a Blueprint from C++.

  • Hello all,

    I am new to Construct 3 (just created an account today actually) and finally got my initial project setup. I am saving to a project folder and committing the output into a github repo which is really awesome. The next step/question I am kind of suck on now is can I run some kind of CLI based tool so I can have my build system compile/export that project for me?

    I am currently using Github actions on an Ubuntu based image to build and compile my server code. I was hoping I could add an additional build step to automatically generate the html5 build instead of having to export the zip file manually, commit it, and then have the build system move that output into my hosting server and CDN service.

    Thanks!

cjimison's avatar

cjimison

Member since 23 Oct, 2020

None one is following cjimison yet!

Trophy Case

  • 4-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

6/44
How to earn trophies