How do I get an object name in game?

  • So I just brought C3 license and I'm porting my game from C2 to C3. I used rexrainbow nickname plugin to spawn objects using their nickname (provided by plugin). Now in C3 there's a native option to create a object by name.

    Is it possible to get the object name through a expression though?

    I know I could just create an variable with an nickname to the object, but I hope there'll be no need for it and that I'm missing something. :)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You can add all objects to a family and use Family.ObjectTypeName expression.

    There is also "System Pick last created" event which may be handy.

  • You can add all objects to a family and use Family.ObjectTypeName expression.

    There is also "System Pick last created" event which may be handy.

    dop2000 Thank you so much! I wasn't seeing this option, I guess because I'm still using the C2 legacy runtime... makes sense. Now I can remove the plugin knowing it won't be a problem and change runtime for C3. Thanks again!

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