We need a "make default instance" button and label!

0 favourites
From the Asset Store
J-BoB Game Button Sound Pack comes with 300 high-quality sound effects
  • ROFL

    I'm with newt. I feel C2 would benefit with everything being a Behaviour. With each Behaviour being individually attached to any WorldObject .

    Then use some kind of CreateCopy( UID ) as the method for creating new ones.

  • Bump.

  • I know exactly what Tokinsom is talking about. I've brought it up in the past.

    Here's an article I wrote a while back about default (or "prototype" objects) in the Construct 2 wiki.

    http://construct2.wikispaces.com/Default+Instances

    I've pasted the relevant parts of it here:

    [quote:kvqonf8e]

    Construct requires a minimum of one instance of every object type in a project to exist in a layout, with noted exceptions such as Input plugins, Function, Arrays, Dictionary, etc. Each first instance of an object type in Construct determines the default properties for new instances subsequently created either *through the editor* or *through the "Create Object / Spawn Object" action* at runtime.

    Since there are many situations where an object might not exist until later in the game (created "on demand" through event code), most developers create a blank "Asset Layout" where each prototype object can be placed. When a project is first opened by Construct, it stores a "prototype instance" of each Object Type in memory. Unless a developer is familiar with the internal operation of how these prototype instances are stored, confusion can result.

    From extensive testing, the prototype instance of some object (A) is simply the first XML element of the instance on the first layer (bottom-most layer in the Layout editor) of the first layout (ordered from top to bottom in the Project Window Layout List -- this matches the layout order in the CAPROJ xml file) encountered that contains an instance of the object parsed by Construct.

    Until a project is reloaded, the prototype instance assignment will not change. Even if you delete the prototype instance, Construct will continue to base new *EDITOR* instances on its properties/values. However, Construct on preview will always reparse layouts for the first prototype instances of all object types, which affects creation/spawn at run-time.

  • Yes...so now that we (finally) have that established, is there any way this can be added, Ashley?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Maybe for Construct 3.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)