about instance objets

0 favourites
  • 6 posts
From the Asset Store
Act on your instances, get/set their properties and variables only thanks to their UID. No more picking trouble! Plugin
  • Hello! When I create several objects that are an instance of an original that is located outside of the layout, how I can refer to one of them to apply for the position property that does not affect others? I hope you understand what I say. My English is very bad. Thank you!

  • You need to 'pick' a specific instance. C2 is very good at doing this automatically - can you name your exact situation, or show a capx, so we can help?

  • the best option would be that when an object is instanced/cloned, we have the option to give the new instance a name so that we can refer to it as a new sprite, independent of the main sprite it was cloned from.

  • As sqiddster said, C2 is good at automatically picking a specific instance, but if you really want to have a named instance, then you could use a text instance variable to give the object a name and then use the Compare Instance Variable condition to do things to that specific instance.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ok! Your information is very usefull!Thanks! :D

  • Hey guys,

    sorry to bump an old thread, but it seemed close to what im after.

    I've made instances of a collision box in my scene - lets say I have two doors, from same object. When I add the text instance variable to the first door, the second door inherits that variable too. Am i doing something wrong? I really dont want to have to clone that object if I dont have to.

    Also when I rename the instance in the Properties panel, it renames for all instances with the same name (which leads me to think its changing the properties of the actual object and passing it to all instances). Is this the case? Is the only way to have instances independent from their source is to clone them in the Object Types folder?

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