Ashley's Forum Posts

  • It's not possible (AFAIK) to display adjacent images seamlessly to each other when at floating point zoom levels. To have a totally seamless display you can only use integer zoom levels (a bit like 'letterbox integer scale'). This isn't a C2 bug, it's just how computer graphics work.

  • septeven - your code is wrong. "return false" makes no sense in an expression - you must *always* return a value through 'ret'. In that case you should say ret.set_int(0) or some other value otherwise you'll leave undefined data in the return value.

  • This is caused by installing third party plugins or behaviors, and I'm afraid as per how to report bugs we can't fix bugs in other developer's code. Closing

  • Layout co-ordinates are not affected by the display being scaled. So you don't need to worry about that at all. Scaling is purely cosmetic, like watching a movie on a bigger cinema screen doesn't change how far the characters are walking in the movie world.

  • Can we keep it all in the forum so other developers can learn from the discussion?

    thingResults is just an ordinary javascript object, set it on startup like "this.thingResults = {};". Then you can use it like a map of thing to result by creating different properties on that object.

    You just have to do the same thing for expressions: use an action to request the data, then trigger a condition when the result is available, and in that event the user can use the expression to retrieve the result. So it's identical but instead of returning true/false in a condition you set the return value via ret.

  • You do not have permission to view this post

  • You do not have permission to view this post

  • Off-screen objects that are not referenced by events will have negligable performance impact. If you want to check yourself, try removing them and seeing if you can measure a difference in the framerate.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Still can't reproduce - works fine here with Windows 8 dual monitors and the "Select" tool chosen or not chosen.

  • Please do not use a file host which requires an email to be entered. Either email the file to ashleyjxm@scirra.com or use a free service like Dropbox. Closing

  • septeven - the code template would be something like this:

    Cnds.prototype.onThingResult = function (thing)     // trigger
    {
         return this.triggeringThing === thing;
    };
    
    Cnds.prototype.isThing = function (thing)
    {
         return !!this.thingResults[thing];
    };
    
    // note this is now an action
    Acts.prototype.checkThingExists = function (thing)
    {
         var self = this;
         
        this.content(thing, function(result)
         {
              // need to associate result with 'thing' somehow
              // (could do this differently but this is just for example)
              self.thingResults[thing] = result;
              
              self.triggeringThing = thing;
              self.runtime.trigger(/*...*/ onThingResult, self);
        });
    };

    In events you would then use the 'Check thing exists' action, which then triggers 'On thing result' where you can use the 'Is thing' condition to test the result.

  • Please see how to report bugs. Please always attach a .capx of the problem and report which browsers you tried, especially since some browsers like IE don't play OGG files. Closing

  • XBox 360 controllers should work with the Gamepad object.

  • They're sorted alphabetically. That's how most code editors order code files, so I thought the same would work for C2.

  • Unity is not a standards compliant web browser, so even if it supports Javascript we would likely have to rewrite various parts of the engine for it to work. I think with node-webkit in the next release there shouldn't be any need to use another engine anyway.