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
→
Center the Actor, at center of screen
Pages:
1
Center the Actor, at center of screen
Ultim0vsitachi
Posts: 6
June 29, 2020, 05:39:52 pm
I want to make my actor be at the center of the screen (not his x,y but the center of him), i thought it would be easy requiring simple math, however it doesn't work and i can't seem to find what i'm doing wrong.... -_-
I tried 2 ways of doing this, that worked in my head, but didn't work in action...
Ultim0vsitachi
Posts: 6
June 29, 2020, 05:53:08 pm
nevermind... it was my mistake, i had to create him 1st, and set it later and not to set it during the creation event... sorry
« Last Edit: June 29, 2020, 05:59:12 pm by Ultim0vsitachi »
Chris24XD
Posts: 48
July 20, 2020, 04:48:56 pm
On the Actor's behaviors, create an when created event and put a show camera center to Actor (found on Scenes>View)
Pages:
1