Draw a text over a sprite

0 favourites
  • 10 posts
From the Asset Store
Draw It!
$19 USD
The objective is to correctly guess and complete the missing part of the picture.
  • I need to create a game where I have a lot of bricks with a word on them, but I need to put that word at runtime because this words will be read from a server using PHP. What I need is a sprite on wich I could put a fisic behavior and then draw a text over it. Got it?

  • You can use the Sprite Font Plugin for this, right?

  • Sprite font? I dont know this plugin, I will search for it. Thanks.

    Edit: This is a Construct Classic plugin, Im using C2.

  • : No it's a C2 plugin.

  • : No it's a C2 plugin.

    Nice plug in friend but its not what Im wanting. What I need is sprite where I can put a text in front of it at run time. Imagine a box with a text in it, I cant create a lot of different sprites with theses text because I will get theses texts from a PHP script and its will change during runtime.

  • This plugin should be able to get the string you are passing and display it as text though. Or maybe I didn't understand what you are asking. But I think what you want is, to have text displayed over the bricks sprites. This plugin shows text and it should be able to do so over the bricks, no matter where you get the text from.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Do you know the text beforehand? If so, create the texts as sprites and use the pin behaviour to pin the relevant text to the relevant box.

  • Do you know the text beforehand? If so, create the texts as sprites and use the pin behaviour to pin the relevant text to the relevant box.

    The texts will change but they will be created one for each sprite. I will try this "pin" behavior... Thanks/

    Edit: Dont work because I create a this sprites and text at run time...

  • Try this

    There's only problem that the Text object can't be rotated with the sprite. You'd have to create another sprite instead and place it over.

  • Try this

    There's only problem that the Text object can't be rotated with the sprite. You'd have to create another sprite instead and place it over.

    Exactly! I just discovered by my self but my solution was same as yours! Thanks a lot!

    Obs: We need to request the C2 creator to create something like intercepthig the draw event like an after draw so we can draw anything over it without need to create another object to do the work.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)