I'm really loving this series - thanks so much for putting so much effort into it
@EverthingsApple12 жыл бұрын
This series is awesome! Please continue to create more :D
@grf07 жыл бұрын
Great work Hemanth and many thanks
@m3gm4n11 жыл бұрын
great stuff keep going!
@grf07 жыл бұрын
If you are following this tutorial in 2017 and have problems with the textfield, here is the new way of doing it on starling version 2.2 Here is all the code you need to write on the addedToStage function: scoreText = new TextField(300, 100, "SCORE: 0",new TextFormat(Assets.getFont().name,24,0xffffff)); scoreText.format.horizontalAlign = Align.LEFT; scoreText.format.verticalAlign = Align.TOP; scoreText.x = 80; scoreText.y = 20; scoreText.border = true; scoreText.height = scoreText.textBounds.height + 10; this.addChild(scoreText); And here is the extra class you need to import besides the ones he already mentioned: import starling.text.TextFormat; import starling.utils.Align; Also note that utils VAlign and utils HAling do not exist in 2.2, instead they became utils.Aling I recommend anyone following this to check the "starling 2 migration guide at wiki.starling-framework. org/manual/starling_2_migration_guide (there is a space before org on purpose, remove that and copy the link)