dot big bang

Developer API
  • Public
  • Public/Protected
  • All

The Floating Text Manager script is required if you want to spawn floating text in the game. In Doodle Safari we only use it with Collectables, but it is quite easy to trigger from other scripts.

The Floating Text Manager is quite simple and only has a single Template reference to the text object that it spawns. Doodle Safari has one already referenced called “Floating Text”. If you want to customize that you can drop your own Template into that field, just make sure that it destroys itself after a set amount of time to avoid cluttering the game.

To trigger it from a script just call the following:“floating_text”, “showFloatingText”, “My Text”, {
    opacity: 1,
    scale: 2