playMaker

Author Topic: Text following an object  (Read 2099 times)

Rabagast

  • Hero Member
  • *****
  • Posts: 683
    • Homepage
Text following an object
« on: February 18, 2015, 11:53:37 AM »
Hi!

How can I make a text following an object? To be more specific.
I make a 2D shooter where I can pick up power ups. This is just a prototype for now.
So I want to have a text for each power up, just for prototyping, so it's easer for me to know the function of each power up.
Check out our homepage. http://www.walsberg.no
Or my personal game blog for news about my games. http://retro-tetro.walsberg.no

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Text following an object
« Reply #1 on: February 19, 2015, 01:33:23 AM »
connect text as a child to you object?

or instead of text, connect a sprite and swapping the sprite picture for each power up picked up.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Text following an object
« Reply #2 on: February 19, 2015, 03:33:14 AM »
Hi,

 I think this is for the new UI system of Unity, for a UI Text to follow a GameObject on Screen.

 I made a micro sample on the Ecosystem demonstrating this. Get it from there ( it's more convenient), or download it below directly:

uGuiTextFollowGameObject.unityPackage

Bye,

 Jean
« Last Edit: February 19, 2015, 09:53:31 AM by jeanfabre »