How do I place text on a sprite

Get help using Construct 2

Post » Sun May 18, 2014 9:53 am

Hi.
I need to assign a text (single word) to a sprite,
print it on the sprite and have it move with the sprite when I drag and drop it.
Kinda like a draggable card with a (dynamic) text on it.
I think I've seen it done somewhere here, but can't find it now.
Anybody?
B
5
S
1
Posts: 23
Reputation: 471

Post » Sun May 18, 2014 10:54 am

The text object is a little limited, but if you used a sprite object - just an plain oblong with text on it - then you could easily do something like the attached.

Is this what you mean?
You do not have the required permissions to view the files attached to this post.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
137
S
31
G
87
Posts: 5,556
Reputation: 60,456

Post » Sun May 18, 2014 2:49 pm

Thanks for the quick reply! :-)
Not quite, though, as this solution would require 500 unique sprites, each with a different word.
What I imagine possible is to overlay text on a sprite, reducing the overhead to one blank sprite and an array to
get random words from.
Then I could create 15 instances of the card with a different word on each.
B
5
S
1
Posts: 23
Reputation: 471

Post » Sun May 18, 2014 10:33 pm

This is what I'm trying to recreate from Stencyl.
A draggable card with a random word drawn on it.
Is there no way Construct can copy that?
You do not have the required permissions to view the files attached to this post.
B
5
S
1
Posts: 23
Reputation: 471

Post » Mon May 19, 2014 11:19 am

Well, I sort of sorted it by pinning a text oject to a sprite. It is, however, a bit jittery on movement, the pinned text follows almost smoothly, but not quite.
B
5
S
1
Posts: 23
Reputation: 471

Post » Mon May 19, 2014 1:52 pm

hi,
i think you must add a pin
try my sample
http://speedy.sh/RHAKH/PinText.capx
2D Game GUI Designer
B
12
S
4
G
3
Posts: 130
Reputation: 3,778

Post » Mon May 19, 2014 6:41 pm

Great! Thanks a lot.
But could you upload it somewhere else? SpeedyShare has a lot of extras it wants to install. :-)
B
5
S
1
Posts: 23
Reputation: 471


Return to How do I....?

Who is online

Users browsing this forum: Google [Bot] and 32 guests