Construct 3 suggestions & ideas

Suggest and vote on ideas for Construct 3! Please note this is only one aspect of planning. We do not guarantee any features here will be implemented, even if they are top-voted ideas. The aim is just to collect feedback. Remember to search for existing submissions before adding an idea, describe your ideas as comprehensively as possible, and vote for plausibleĀ ideas that are well thought out. Please seeĀ our full guidelines on suggesting features.

Editor API access for all object instances

I'm writing a plugin to parse a json map file containing position data of sprites. In order for this to work I need to find all object instances on the layout and modify their positions. Currently the editor api only allows me to create new objects but it doesn't give me the access for any of the existing objects in my project.

How should this work?
- Add to IProject interface a method GetObjectType(name) - Look up an IObjectType by a case-insensitive string of its name.
- Add to IObjectType interface a method GetAllWorldInstances() - Returns an read-only array of IWorldnstance that have been created.

  • Guest
  • Nov 10 2020
  • Already exists
SDK
  • Nov 11, 2020

    Admin response

    These methods were already added in the latest beta releases (see SDK updates), including GetObjectTypeByName() and IObjectType.GetAllInstances(). The documentation is updated at the next stable release.

  • Attach files
  • +2