Page 1 of 1

Sprite text to follow another sprite

PostPosted: Tue Jun 04, 2013 10:38 pm
by immigrantsheep
I made some text with sprites by making evey letter a frame of animation. It works great. But what I want to do now is make the newly created SpriteText follow a sprite on the screen. Is there a way to achieve that? I tried with set position on every tick and pin the text to my sprite but it doesn't work. I can make the normal text follow the sprite but not the SpriteText.

https://dl.dropboxusercontent.com/u/24176/SpriteText.capx

Re: Sprite text to follow another sprite

PostPosted: Tue Jun 04, 2013 10:50 pm
by Guizmus
Hum, just add this pin on the letters sprites.

By the way, don't destroy/redraw letters every tick ! Put this in the start of the layout.
Same goes for the text "buffer", don't keep the text object, use a variable.

Re: Sprite text to follow another sprite

PostPosted: Tue Jun 04, 2013 10:53 pm
by Paradox
What didn't work for you?
I added
AFont2 | Pin Pin to Sprite (position & angle)
to the end of event 7, and it followed just like the text.

It should be pinning the newly created letter to the sprite, so they all get pinned individually.

Re: Sprite text to follow another sprite

PostPosted: Tue Jun 04, 2013 10:57 pm
by immigrantsheep
@Paradox and @Guizmus thank you both so much :) working great now!

Re: Sprite text to follow another sprite

PostPosted: Thu Jun 13, 2013 11:37 am
by immigrantsheep
@Paradox and @Guizmus I asked already in the how do i... section but I thought I'd give it a shot here as well. Is there any way to make the sprite text position itself on the center of the old text? It seems I can only manage to spawn it alligned to the left. immigrantsheep2013-06-17 10:50:45