How to use one SpriteFont and change it dynamically

  • 3 favourites

Attached Files

The following files have been attached to this tutorial:

.capx

tutofontid.capx

Download now 177.25 KB

Stats

1,090 visits, 2,636 views

Translations

This tutorial hasn't been translated.

Tools

We often need to make changes on one instance of Sprite, SpriteFont, Text...

We have for this the System condition: Pick by comparison.

To select an instance of a SpriteFont and change his text:

- Add Instance Variable "varId" to your object SpriteFont

- Give an ID like "myText"

- Pick by comparison: SpriteFont.varId = "myText"

- Modify the text

That's all !

Demo: http://myslot.2vib.com/tutoFontId/

You can find this tip in: https://www.scirra.com/store/games-with-source/my-jukebox-slot-machine-3196

.CAPX

tutofontid.capx

Download now 177.25 KB
  • 0 Comments

  • Order by
Want to leave a comment? Login or Register an account!