β˜…π™ƒπ™€π™¬ 𝙙𝙀 𝙄 π™Žπ™šπ™₯π™–π™§π™–π™©π™š 𝙩𝙬𝙀 π™¨π™©π™§π™žπ™£π™œπ™¨ 𝙛𝙧𝙀𝙒 π™€π™£π™š π™«π™–π™§π™žπ™–π™—π™‘π™š?β˜…

  • How can I store two strings in a var and then later grab one of the two strings from that var?

    EXAMPLE:

    Mouse X

    Mouse Y

    var Place = Mouse.X + Mouse.Y

    Set TextA (Place -> Convert -> Mouse.X)

    Set TextB (Place -> Convert -> Mouse.Y)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • How can I store two strings in a var and then later grab one of the two strings from that var?

    EXAMPLE:

    Mouse X

    Mouse Y

    var Place = Mouse.X + Mouse.Y

    Set TextA (Place -> Convert -> Mouse.X)

    Set TextB (Place -> Convert -> Mouse.Y)

    ->System| Set Place to Mouse.X & "_"& Mouse.Y

    ->Text| Set TextA to tokenat(Place,0,"_")

    ->Text| Set TextB to tokenat(Place,1,"_")

    tokenat(src, index, separator)

    Return the Nth token from src, splitting the string by separator. For example, tokenat("apples|oranges|bananas", 1, "|") returns oranges.

    I would rather use an array instead of a String if possible.

  • Excellent thank you for the reply.

    The information is getting sent though the multiplayer plugin and it's time sensitive, meaning I can't send the information separate thought multiple messages otherwise it could corrupt the data with other user inputs.

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