arlojay's Recent Forum Activity

  • Thank you!

    However, when I follow what the reference says (referencing objects via runtime.objects.ObjectType) on a sprite type, it does not show the sprite-type-specific methods through intellisense. Is this because I'm referencing it through the wrong place, because the types are broken, or because this is a feature specific to certain contexts (like addons)?

  • Apologies if I missed anything in documentation, but I'm looking to get a list of all animation names for a Sprite object in JavaScript. I want to create a button that cycles through a sprite's animations, but I don't see a way to get a list of animation names to progress through. Is this functionality in scripting?

  • In that case, would it be possible to make them visible with read-only access? I do not need to modify them at runtime because I'm only serializing the layout, not deserializing.

    Also, if this data is made visible, would it be possible to make other plugins' immutable instance data - such as SpriteFont's character set and spacing data - visible as well?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I was looking to access and change the properties that can also be found on the instance's data within the project layout json file (left-margin, right-margin, origin, seams, etc.).

    { "type": "ThoughtBubble",

    "properties": {

    "left-margin": 2,

    "right-margin": 7,

    "top-margin": 1,

    "bottom-margin": 5,

    "edges": "stretch",

    "fill": "stretch",

    "initially-visible": true,

    "origin": "top-left",

    "seams": "exact"

    },

    }

  • I'm writing a level editor inside my game and am working on a module for serializing the current layout state using TypeScript. I'm able to read plugin-specific properties of instances from classes such as ITilemapInstance and ISpriteInstance, but I cannot find out how to read properties from an instance of a 9-patch. Is this a bug within the TypeScript typings or a limitation of the engine itself?

    It looks like instances of 9-patch inside InstanceType extend a simple IWorldInstance, which obviously does not contain properties specific to 9-patches.

    Tagged:

arlojay's avatar

arlojay

Member since 19 Apr, 2019

None one is following arlojay yet!

Connect with arlojay