piranha305's Forum Posts

  • so you can't see the image?

  • I agree the Gui tools can be improved. I would stay away from a cookie cutter Ui system though. Right now the html Controls exist on top of the canvas where the game is actually eing rendered. Trying to line things up become a real pain when u need it to be percise.

    I am not sure leveraging the html on top of the canvas can solve this issue. Maybe an approach how other game engine handle Ui would be worth Considering.

    It's like op mentioned we also need some type of grid system to layout elements in a predictable way. Like flex box or bootstrap grid system.

  • It would be great to able able to set the whole data structure that the tile map uses. That would be the most efficient way. But you would still need to transform you 2d array into the tile map format with I think holds byte data for each cell. Plus some other meta data

  • https://piranha305.itch.io/tanktrax

    The game was made in construct 3 using javascript/events, you can download the project file and a dev log HERE

    Tagged:

  • You do not have permission to view this post

  • 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!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.

  • 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();