How do I set different text for copied text object?

0 favourites
  • 3 posts
From the Asset Store
Adjusting the game screen for different resolutions (Letterbox scale)
  • Hi guys I have a question for you.

    As title how can I set different text for a copied text object without do a new text object

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If you want to do it in runtime you can change a specific file this way:

    Or if you want text to be different on start you can just change "Text" property for the newer copy

  • So there are several ways, you simply need to let Construct know how to identify which one you want.

    The perfect way would be through its UID (Unique ID), which is different even for copied texts (or sprites). You can find it on the left bar.

    All you need to do is: Go to the text object's condition -> Pick by UID, and then make a sub-event for its action, e.g.: 'Set Text: Hey I'm so unique!'

    But 'picking' could be done through many ways, e.g:

    1) its opacity

    2) its position (nearest to something?)

    3) its instance variable

    4) its Z level, top/bottom

    5) ..or any expression or evaluation you can think to differentiate them*

    * Go to System: Pick object by: (here you can see many options, most relevant for you is Pick by Comparison).

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