Yashko

Add simple text

Recommended Posts

Hello guys, how to add text to scene? And make it fixed to sprite?

I looked in docs on pandajs site, but cant find any examples.

I dont need to use my own font, just any simple font

Share this post


Link to post
Share on other sites

Always good to post the solution up when you find it just in case someone else is looking for the same thing:

You add it to the Sprite as a child with .addChild() and update the position in the update() is my usual method.

Share this post


Link to post
Share on other sites
On 1/6/2016 at 2:36 PM, Stephan said:

For live examples, please have a look at: http://vermeire.home.xs4all.nl/panda/

and of course the official cheat sheet: http://www.pandajs.net/cheatsheet/

 

This cheatsheet isn't up-to-date with panda v2, here are the relevant links:

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.