[Suggestion] Edit Text Strings From Any Position

0 favourites
  • 5 posts
From the Asset Store
OpenAI TTS
$10 USD
Text-to-Speech plugin.Allows your Construct 3 project to convert written text into spoken words
  • Presently, with the Text and Sprite Font objects, you can append the end of the text string with additional characters. That's how I understand it.

    But I was wondering if it would be possible to add a feature to both objects where you could do just as you can in Arrays, where you can insert content in the middle or beginning of a value.

    Say you have a Text value of "I Scirra."

    Asside from being grammatically incorrect, say you want to amend this text. You'd need a condition that could isolate a position in the string and then insert the text " love" in between the two. It would essentially look like this...

    "I" --> " love" <-- " Scirra." [The --> and <-- is mean to identify the insertion of an existing text as opposed to current procedures where you can combine text strings and variables like this Variable + "Text".]

    Basically, if we could take those certain events and actions that can be applied to text values within an Array and use them with the Text and Sprite Fonts, that would be so helpful.

    Please let me know if I need to clarify this more. Thanks, Scirra Bros!

  • Can't you just write a function to do this? Shouldn't be too hard, and it's the perfect application for a function.

  • - As I'm reviewing the manual for the Text, Sprite Font, and Array objects, I'm thinking you're right... I'm still faced with how to set up a process that will take a text string and break it up into its individual characters, in a sense.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • This is one of those cases where people who come from other coding backgrounds don't even think about features like that. I've been manipulating text strings since 1982.

    I had a moment of "Gee, what if there was a different way."

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