How do I Pin to the absolute top of a sprite?

Get help using Construct 2

Post » Sun Oct 12, 2014 8:58 pm

I would like to add a health bar to a sprite that always hovers a few pixels over its top most side.

Both position only and bar style track the pinned objects rotation, but I want to remain directly north of the sprite at all times.
Developing Surolace, the survival role playing space game.

surolace-survival-role-playing-space-game_t116953
B
14
S
4
Posts: 303
Reputation: 1,730

Post » Sun Oct 12, 2014 9:28 pm

Is this what you are trying to do?

https://www.scirra.com/tutorials/622/pi ... t-rotation
B
11
S
2
Posts: 46
Reputation: 739

Post » Sun Oct 12, 2014 9:35 pm

Yes, that solves the problem, but adds the overhead of having to keep track of another UID for what I am doing. I may just end up doing an on every tick to set the position. Thanks!
Developing Surolace, the survival role playing space game.

surolace-survival-role-playing-space-game_t116953
B
14
S
4
Posts: 303
Reputation: 1,730


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 5 guests