Class engine.FlyingText

Flying Text

Methods



Methods

engine.FlyingText:init ([fontname="DroidSans"][, fontsize=12][, bigfontname="DroidSans-Bold"][, bigfontsize=14])
Init

Parameters:

  • fontname string (default "DroidSans")
  • fontsize int (default 12)
  • bigfontname string (default "DroidSans-Bold")
  • bigfontsize int (default 14)
engine.FlyingText:enableShadow (v)

Parameters:

  • v boolean enable the shadowssss
engine.FlyingText:add (x, y[, duration=10], xvel, yvel, str, color, bigfont)
Add a new flying text

Parameters:

  • x int x position
  • y int y position
  • duration int (default 10)
  • xvel optional number horizontal velocity
  • yvel optional number vertical velocity
  • str string what the text says
  • color optional table color of the text, defaults to colors.White
  • bigfont optional boolean use the big font?

Returns:

    FlyingText
engine.FlyingText:empty ()
Removes all FlyingText
engine.FlyingText:display (nb_keyframes)
Display loop function

Parameters:

  • nb_keyframes int
generated by LDoc 1.4.3