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
→
Draw number attribute in center of an actor
Pages:
1
Draw number attribute in center of an actor
YobKgames
Posts: 63
June 14, 2017, 08:29:45 am
all is in the title
JeffreyDriver
Posts: 2262
June 14, 2017, 09:06:17 am
The Drawing Utilities extension has blocks for easily centring text.
Current Projects:
The Grand Grimoire Chronicles Episode 3
Twitter@JeffreyDriver
apps.jeffreydriver.co.uk
YobKgames
Posts: 63
June 14, 2017, 09:08:37 am
how can i draw a number attribute at the center of my actor ? i dont understand
Luyren
Posts: 2802
June 14, 2017, 09:13:35 am
See attachment.
My Stencyl resources are available here:
https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.
YobKgames
Posts: 63
June 14, 2017, 09:25:14 am
this code dont draw the attribute at the centerr
LIBERADO
Posts: 2720
June 14, 2017, 09:37:56 am
@YobKgames we can help if you provide enough information. Instead of saying
"this code dont draw the attribute at the center"
, tell us what exactly happens when you use the code provided by Luyren.
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.
YobKgames
Posts: 63
June 14, 2017, 09:46:29 am
the code draw the attribute at the bottom (center) of the actor
excuse me for my bad english
liberado can you give me another solution ??
Luyren
Posts: 2802
June 14, 2017, 09:51:28 am
Right, I forgot something: in the Y position to draw, it should be
[(Half height of self) - (height of text using font/2)]
. This should centralize the Y position of the text with the actor.
My Stencyl resources are available here:
https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.
YobKgames
Posts: 63
June 14, 2017, 09:57:34 am
Thnx luyren that's workk
Pages:
1