How to find a number in front of a word in a text?
Example if I have a text box saying:
"Breads 2, Steaks 3"
How do I make this text be interpreted by the construct 2 how much breads and steaks has only by the text?
Develop games in your browser. Powerful, performant & highly capable.
I'm trying make a terraria like world procedural generation in construct 2
But when i try to do it, the game lages because there are too many objects in the layout
And in construct 2 there is no Advanced Random
how do i make a terraria like procedural generation in construct 2?
Whenever I try to do it on my own, the game's fps goes down
It wasn't exactly that, but it already gave me an idea of how to do it.
Thanks!
Not exactly, imagine someone wrote in a TextBox
"
Alies 4
Enemies 3
Now I want to programmatically know how many allies and enemies he has for this text (in short: the reverse process you did, transfer the text to values in the variable)
I have the following text
"Allies 5 Enemies 4"
How do I programmatically identify how many Allies and Enemies there are with this text alone?
Member since 6 Jul, 2020