Dynamic text in layout view?

0 favourites
  • 2 posts
From the Asset Store
94 Inside buildings views - Isometric view - PNG transparent - 2048x2048
  • tl;dr -- Is it possible to dynamically set the text for Text objects in the layout view?

    I have a number of 'door' sprites in my layout, each of which has a 'doorID' text instance variable that specifies which door it leads to. I find myself constantly selecting the door objects in the layout view to see which door they lead to, so I added a Text object to the layout for each door. I then manually set the text for that Text object to its corresponding door's doorID value (via cut and paste). This allows me to easily see this doorID text without having to click on each door. And these Text objects are visible in the layout view but hidden at runtime.

    Instead of using the manual cut-and-past approach above, is it possible to dynamically set the text for Text objects in the layout view? Any other suggestions that may help here?

    Thanks

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You can use hierarchies - select both sprites, right-click on one and choose "Hierarchy add selection". Disable all synced properties for the child sprite.

    This may not be faster than copying/pasting text, but it will be easier to see which door connects to which exit.

    And in events you can easily pick child/parent instance.

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