piranha305's Recent Forum Activity

  • Here is a very basic example of the flow I described,

    drive.google.com/open

    the function splitString takes a string splits it then uses the runtime to call a function on the event sheet to populate the ArrayObject

    after that you can use the array how ever you want. hopefully this helps

  • I think as of right now the Array interface has not been defined from the scripting API (at least not in the documentation) so you can't directly manipulate the array properties from javascript. You would need to call a function in the script that would callback into the eventsheet to manipulate the object.

  • That's why I have not filed a bug yet doing a bit more research, I will check on a different connection later today and verify it's not a local issue. Thanks

  • is any one else experiencing inconsistent cloud saving in the new beta. so pretty much the browser just seems to hangs and it does not save, also preview stops working after a while.

    it stays at zero percent, there are no console errors, inspecting teh network tab it's making a request to z-worker

    this request stays pending indefinitely

    This seems to be happening on a regular basis, I am going to file a bug report, but it would also be good to know if anyone else is having the issue just to rule out it being project related, or maybe a connection issue on my end.

  • I don't think that happens currently, when I import js script on project section I don't get syntax highlighting or errors.

  • i just clicked that longer than i thought i would, good job!

  • using load scripts is a good idea, so the project files does not have an option to create a new js file, that only exists under the script folder. a work around is to import the js file, using the project file import. but if you wanted to create one that option is missing

  • the folder thing is nice, i did not think of that, i have been merging all my js into one file in the order i needed. but that get really tiring when you have more than 1000 lines in one file. thanks.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • is there a way to control the order in which scripts are loaded on the page? if i have serveral js files how can i ensure they are loaded in a specific order.

  • you can also wrap each of your functions in a class

    class gun
    {
    	constructor() {}
    	show() {
    		alert("gun");
    	}	
    }
    
    class laser
    {
    	constructor() {}
    	show() {
    		alert("laser");
    	}	
    }
    

    then you would need to create instances of each of those classes

    const gunInst = new gun();
    const laserInst = new laser();
    

    then on your button click you can do

    gunInst.show();
    
  • here is the link to the issue

    https://github.com/Scirra/Construct-3-bugs/issues/3104

  • so something interesting that happens is if you have chart.js and chart.css these guys get nested togetehr

    now depending on what you imported first it will get nested in the scripts folder or the project folder.

    not sure if this is bug or intentional.

    drive.google.com/open

    i have attached a gif of the behavior. it does not seem to have any major impact that i am aware of.

piranha305's avatar

piranha305

Early Adopter

Member since 26 Apr, 2016

Twitter
piranha305 has 34 followers

Connect with piranha305

Trophy Case

  • 8-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • x5
    Coach One of your tutorials has over 1,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • RTFM Read the fabulous manual
  • x4
    Quick Draw First 5 people to up-vote a new Construct 3 release
  • x2
    Lightning Draw First person to up-vote a new Construct 3 release
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

18/44
How to earn trophies