Sprite text to follow another sprite

Get help using Construct 2

Post » Tue Jun 04, 2013 10:38 pm

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
B
5
S
1
Posts: 48
Reputation: 496

Post » Tue Jun 04, 2013 10:50 pm

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.
B
17
S
8
G
4
Posts: 473
Reputation: 6,221

Post » Tue Jun 04, 2013 10:53 pm

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.
B
242
S
63
G
33
Posts: 903
Reputation: 40,756

Post » Tue Jun 04, 2013 10:57 pm

@Paradox and @Guizmus thank you both so much :) working great now!
B
5
S
1
Posts: 48
Reputation: 496

Post » Thu Jun 13, 2013 11:37 am

@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
B
5
S
1
Posts: 48
Reputation: 496


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 25 guests