Centre text based on position of an Actor?

johnjanowskibsc

  • *
  • Posts: 153
Hi,

I'm trying to centre text based on the position of an actor but not quite getting it... I know how to centre text based on screen position but my head can't quite get round how to centre text based on the position of an actor on screen?  Here is an attempt to help clarify what I mean!

Max Marin

  • Posts: 138
Did you try this?
I'm human

johnjanowskibsc

  • *
  • Posts: 153
thanks for your help but not quite - your suggestion pushes the text far away from the centre of the actor...

I've used your suggestion and tweaked it slightly - this is almost perfect but not quite


Luyren

  • *
  • Posts: 2704
https://youtu.be/diMrZg95Oqw
The video goes over everything drawing. Key here is to check the spacing of your drawing. And Marin's suggestion is the proper one if this is an actor spacing drawing, using half width of actor.
My Stencyl resources are available here: https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.
Twitter

Max Marin

  • Posts: 138
Are you drawing from the scene or the actor?
I'm human

johnjanowskibsc

  • *
  • Posts: 153
Thanks for pitching in to help . I am drawing from the scene not the actor. Will try and get round to this ASAP - Thanks again