Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Students do not need accounts with us
Our educational partners
Free education resources to use in the classroom
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
str = (99999)
How do I change symbol #4 to 0?
=> str = (99909)
You can use tokenat to get each letter.
Then insert each one into a temporary string.
When the letter index is equal 4, you will insert 0.
After that, you set your string equal temporary string.
Here is the screenshot of the event will look like:
I thought there is an automatized command, but, anyway, thank you :)
If someone else will read that topic, here is my way to solve the problem:
Develop games in your browser. Powerful, performant & highly capable.
with index=4, newCharacter="0", string= string to change.
system | set string to left(string,index-1)&newCharacter&right(string,len(String)-index)
Thanks, I did the same. But somewhy picture has not been posted in my previous post