Ashley's Forum Posts

  • This is already on the todo list, but is fairly low down the list since we have a lot of other bigger things to do I'm afraid!

  • Looking good!

  • As sqiddster said the only way to get tiled backgrounds to show perfectly in WebGL mode is to use a power-of-two sized texture, e.g. 32x32 or 64x64.

    You should also make sure 'sampling' is set to 'point' in project properties to prevent sub-pixel positioning causing blurring.

  • Construct 2 is indeed written in C++, mainly because that's where our experience lies (Classic was also C++).

  • You do not have permission to view this post

  • You do not have permission to view this post

  • What do you mean by "re-changed"? Can you explain what you are doing step-by-step in more detail, and include what to expect to happen and what you see happen instead? More information in how to report bugs.

  • Try sharing a .capx so we can see what you've done.

  • Using an index number will be extremely brittle, because if the dev adds a new property to the top, all the other indices are wrong! I do this myself with official plugins and behaviors quite regularly.

  • Seems to work fine here, with no errors - are you sure it's not to do with the offline cache serving up the old project still? Maybe try exporting to a different URL (use a different folder name) and try again.

  • This is usually caused by a third party plugin using the wrong plugin ID. Which third party plugins did you have installed?

  • Good idea, added to the todo list!

  • Your best bet is to use Chrome's debugger, and to browse the runtime.js of plugins you're interested in. See their onCreate methods - that's where they create all the properties the object will use. You shouldn't use the properties array directly - that really ought to be deleted after onCreate(), but I left it in anyway.

    You cannot access properties by the string of their name, because the minifier renames all properties on export and will break that.

    Instance variables are stored in an array property called instance_vars IIRC, and behaviors are stored in an array called behavior_insts. The debugger will tell you more.

    It's quite unusual to need to know the types of a property - usually you know what it is by assumption (if you get the 'width' property, for example, obviously you're going to get back a number and not a string). However if you need to dynamically determine types, use Javascript's typeof operator.

    What are you trying to do? Sounds like you'll have a hard time, especially because of the minifier.

  • Thanks for the feedback! Great to hear. Glad to know Construct 2 is doing what it's supposed to :)

  • There are known problems with exporting in r96 - please try again when r97 is out and let me know if it's fixed/still broken.