TOUR
PRICING
HELP
Stencylpedia
Blocks Guide
Sample Games
Developer Center
FORUMS
CHAT
#MADEINSTENCYL
EDUCATION
SIGN IN
×
Welcome back!
Username or E-mail
Password
(
Forgot?
)
C
OMMUNITY
Home
Issue Tracker
Inbox [0]
New Posts
New Replies
Search
Stencyl Community
→
Stencyl
→
Ask a Question
→
Separate letters from a word (solved)
Pages:
1
Separate letters from a word (solved)
LadyLegend
Posts: 112
September 30, 2016, 12:33:09 pm
Hey guys does anyone know how to separate letters from a word. I want to get the letters from a word and set a text attribute to the letter.
« Last Edit: September 30, 2016, 06:45:03 pm by LadyLegend »
LIBERADO
Posts: 2720
September 30, 2016, 01:15:02 pm
Use this block:
It returns part of the given text, given the starting and ending indices. More specifically, this block returns the characters beginning with the start index and ending with one less than the ending index.
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.
gplar
Posts: 1115
September 30, 2016, 02:25:08 pm
And remember that indexes start on 0. A six-letter word would be indexed from 0 to 5.
LadyLegend
Posts: 112
September 30, 2016, 06:27:46 pm
Thanks!
Pages:
1