sbonavida Posted November 10, 2016 Share Posted November 10, 2016 Hello everybody, I'm a newbie in phaser, but I love it. ^^ I have a skeleton of app and I have a bitmapfont created with littera. (http://kvazars.com/littera/) I show one word every 100ms in my bitmapText in function update(). Could I know the coordinates of last letter in a bitmapText? If I know the coordinate, then I will draw a 'hand' (sprite) in that location. I was searching examples in internet, but I didn't found anything. Is it possible? Or, Do you imagine any alternative for his? Sorry, If my question is very simple. Thanks. Link to comment Share on other sites More sharing options...
samme Posted November 11, 2016 Share Posted November 11, 2016 The last letter is the last child (Sprite) of the Text object. text.getChildAt(text.children.length - 1).position sbonavida 1 Link to comment Share on other sites More sharing options...
sbonavida Posted November 11, 2016 Author Share Posted November 11, 2016 oh! It's so simple. It's working ok. You are great samme. Thank you very much. Link to comment Share on other sites More sharing options...
Recommended Posts