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
→
Work with text strings blank spaces
Pages:
1
Work with text strings blank spaces
Apamaster
Posts: 129
July 27, 2020, 08:33:37 am
Is it possible to add tabs in a text or add a number of spaces, not two spaces or three, but a number that represents a separation between letters? Since I can calculate the width of the letters I would like to add a width of space I specify.
ejemplo
example
this is test 1 2 there are 5 spaces between 1 and 2 but I want them to be separated by 6.5 spaces.
JeffreyDriver
Posts: 2262
July 27, 2020, 09:24:02 am
Something like this?
This is text one/6.5/this is text two/8/this is text three
So you use / to split the text into a list so it looks like this:
Item 0: This is text one
Item 1: 6.5 is the value of spaces
Item 2: This is text two
Item 3: 8 is the value of spaces.
Item 4: this is item three
Current Projects:
The Grand Grimoire Chronicles Episode 3
Twitter@JeffreyDriver
apps.jeffreydriver.co.uk
Apamaster
Posts: 129
July 27, 2020, 03:21:36 pm
That is not what I am saying.
what I say is each word has a size the space " " measures 5.5 the letter A measures 7.5 etc. what I say is that between two letters if I leave a space the distance is 5.5 but instead of being 5.5 the distance is for example 6.5 and not 5.5 that equals even space " ". I'm just asking if it's possible.
Luyren
Posts: 2807
July 27, 2020, 04:30:48 pm
It is, you will have to break your text in multiple blocks and position each on accordingly, with the desired space between them. You can achieve that with lists.
My Stencyl resources are available here:
https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.
Pages:
1