Yashko Posted May 28, 2016 Share Posted May 28, 2016 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 Quote Link to comment Share on other sites More sharing options...
Yashko Posted May 28, 2016 Author Share Posted May 28, 2016 Okay, i found solution, downloaded "Panda Engine 2 Playground", copied files from there and copied code, works fine ;d Quote Link to comment Share on other sites More sharing options...
Umz Posted May 30, 2016 Share Posted May 30, 2016 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. Quote Link to comment Share on other sites More sharing options...
Stephan Posted June 1, 2016 Share Posted June 1, 2016 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/ Quote Link to comment Share on other sites More sharing options...
SkyzohKey Posted June 8, 2016 Share Posted June 8, 2016 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: v2 website: https://ekelokorpi.github.io/panda.js-site/ v2 docs: http://ekelokorpi.github.io/panda.js-site/engine/docs/ v2 playground: https://ekelokorpi.github.io/engine/playground Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.