Making an actor not scroll in a scroller?

JohnyRocket

  • Posts: 29
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
Anchor it to the screen using the block in Stencyl.
~Letmethink

JohnyRocket

  • Posts: 29
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
Where do you create it in the scene? Make it in the top left corner perhaps.
~Letmethink

Natrium

  • *
  • Posts: 111
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
Ok, I don't know why it wasn't working but works great now! Thanks for putting up with my ignorance  ;D