Insert String without using Left() and Right()

This forum is currently in read-only mode.
From the Asset Store
With this template you will learn how to use the GooglePlay Games native plugin
  • Is there any way of inserting a string into a string variable at a defined place in the text, an index maybe, without having to set the text to left(stringName, stringLength) & "addition" & rigth(stringName, stringLength)?

    I don't want the CPU to count the right side of the string over and over again, which is what I am doing right now, with a lot of different strings at the same time and GetToken(), with an increasing index position going over 2000.

    I have events checking for and reading the current index position in a string, and if a certain string is given, do something according to that string at that position.

    About 3 Events for this keep checking every tick and for multiple (about 10) strings at the same time each tick.

    With increasing index value in GetToken the FPS breaks in.

    My idea was then to just after maybe every 500 Tokens (index 500), add a NewLine, and restart the index to 1, and keep reading the text in the New Line, starting from index 1.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Might want to think about using a different object.

    Data-structures is pretty useful.

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