Magistross's Recent Forum Activity

  • The file from the CDN doesn't look like a javascript module. There is no export of the PptxGenJS variable.

    You probably should add the js file to your project and do an export of said variable.

  • Might not be the best if you need to rebuild this object frequently, but simply iterating through your x-axis should be quite easy to get the data needed by your library.

    const arrayInstance = runtime.objects.Array.getFirstInstance();
    let arrayData = [];
    
    for(let i=0; i < arrayInstance.width; i++){
    	arrayData.push({x: arrayInstance.getAt(i, 0),
    					y: arrayInstance.getAt(i, 1)});
    }

    As a side note, the debug text box should have its BBCode functionality deactivated, otherwise it will create weird anomalies trying to display your JSON.

  • Then you should probably simply use the .then() function.

    postData(...).then(callbacks)

    See documentation here : developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/then

  • Not sure if the await keyword is exactly what you want. Could you perhaps illustrate a bit more how you intend to use said function ?

  • You can compare every tick the cycle position, if the current value is less than the value of the last tick, it means a cycle was completed.

  • As a side note, since you are destroying most "walls" sprites as soon as they are created, creating them conditionally instead would speed up things tremendously.

    Also, you create ViewportWidth * ViewportPortHeight + 10 objects, and yet you place them quite beyond the limit of the viewport, I'm not sure if this is intended. Are you trying to tentatively create an object every 10 pixels inside the viewport ?

  • You have to re-seed the plugin if you want to generate a new set of noise values.

    The easiest way is to update the seed with AdvancedRandom.RandomSeed on each call to GenerateWalls.

  • I don't think the scripting API offers anything to do that directly, however you could probably create an event sheet function that deactivate/activate a group name received in a parameter, and then call that function using scripting with the runtime function callFunction(name, ...params).

  • It shouldn't trigger only for the last instance. I'm curious to see your implementation if you can reproduce your observed behavior in a simple c3p file.

  • Pick all is actually used to reset the "selected object list" (SOL) when it is currently filtered and you wish to select through all instances again.

    For each is used when you want to do things relative to a single instance at a time.

    Both of which is not what you are after.

    Selecting the text1 instances where var = 1 is as simple as that :

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • dt is the measure of time (in seconds) that elapsed since the last tick.

    Let's say you add dt to the x position of a sprite each tick, it will effectively move one pixel to the right every second.

    If you want to "mimick" an "every tick" synced at 60fps, you could then add dt*60 to the position, so the sprite would move 60 pixels to the right every second, independently of the current refresh rate.

  • Move the line

    	globalThis.statusTextInstance = runtime.objects.txtOutput.getFirstInstance();
    

    to the ePrinter event sheet. Either before the other line in the "Start of layout" trigger, or simply use the "On created" trigger of the text object.

Magistross's avatar

Magistross

Member since 4 Jul, 2011

Twitter
Magistross has 14 followers

Trophy Case

  • 13-Year Club
  • Entrepreneur Sold something in the asset store
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

20/44
How to earn trophies