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
→
Making an actor not scroll in a scroller?
Pages:
1
Making an actor not scroll in a scroller?
JohnyRocket
Posts: 29
May 11, 2015, 05:42:35 pm
I'm trying to implement a health bar so to speak, and I don't want it to move with the scene; I want it to be stationary. How do I keep it in the same spot?
letmethink
Posts: 2545
May 11, 2015, 11:11:03 pm
Anchor it to the screen using the block in Stencyl.
~Letmethink
JohnyRocket
Posts: 29
May 12, 2015, 09:49:57 am
I've added that block, but now my health bar isn't there! This is all I'm using:
When created:
Anchor (self) to screen
A very simple block, I don't understand why this isn't working?
letmethink
Posts: 2545
May 12, 2015, 10:21:47 am
Where do you create it in the scene? Make it in the top left corner perhaps.
~Letmethink
Natrium
Posts: 111
May 12, 2015, 10:39:15 am
And if you want to be sure of the actor's location, add a
set [x/y] for [self] to []
block after the anchoring. Note that when an actor in anchored, its coordinates are relative to the camera (0,0 will be the top left corner of the window, for example).
JohnyRocket
Posts: 29
May 12, 2015, 11:26:57 am
Ok, I don't know why it wasn't working but works great now! Thanks for putting up with my ignorance
Pages:
1