Sawtaytoes
2/24/2019 - 7:16 PM

Responsive Actor using ScreenResolutionChangedMessageCommand

LoadFont(FontChoiceBig) .. {
  InitCommand = function(
    self
  )
    self:shadowlength(3)
    self:diffuse(ColorMidTone(Crayon.Grey))
    self:diffusebottomedge(Crayon.White)

    self:playcommand("ScreenResolutionChanged")
  end,
  ScreenResolutionChangedMessageCommand = function(
    self
  )
    self:xy(
      SCREEN_CENTER_X,
      SCREEN_CENTER_Y
    )
  end,
}